add PercentChanceToCast rules for AE and group spells

This commit is contained in:
nytmyr
2024-11-10 23:14:34 -06:00
parent 8fa429c02d
commit c50d72ccf0
2 changed files with 22 additions and 12 deletions
+2
View File
@@ -788,7 +788,9 @@ RULE_INT(Bots, SpellResistLimit, 150, "150 Default. This is the resist cap where
RULE_INT(Bots, StunCastChanceIfCasting, 50, "50 Default. Chance for non-Paladins to cast a stun spell if the target is casting.") RULE_INT(Bots, StunCastChanceIfCasting, 50, "50 Default. Chance for non-Paladins to cast a stun spell if the target is casting.")
RULE_INT(Bots, StunCastChanceNormal, 15, "15 Default. Chance for non-Paladins to cast a stun spell on the target.") RULE_INT(Bots, StunCastChanceNormal, 15, "15 Default. Chance for non-Paladins to cast a stun spell on the target.")
RULE_INT(Bots, StunCastChancePaladins, 75, "75 Default. Chance for Paladins to cast a stun spell if the target is casting.") RULE_INT(Bots, StunCastChancePaladins, 75, "75 Default. Chance for Paladins to cast a stun spell if the target is casting.")
RULE_INT(Bots, PercentChanceToCastAEs, 75, "The chance for a bot to attempt to cast the given spell type in combat. Default 75%.")
RULE_INT(Bots, PercentChanceToCastNuke, 75, "The chance for a bot to attempt to cast the given spell type in combat. Default 75%.") RULE_INT(Bots, PercentChanceToCastNuke, 75, "The chance for a bot to attempt to cast the given spell type in combat. Default 75%.")
RULE_INT(Bots, PercentChanceToCastGroupHeal, 90, "The chance for a bot to attempt to cast the given spell type in combat. Default 90%.")
RULE_INT(Bots, PercentChanceToCastHeal, 90, "The chance for a bot to attempt to cast the given spell type in combat. Default 90%.") RULE_INT(Bots, PercentChanceToCastHeal, 90, "The chance for a bot to attempt to cast the given spell type in combat. Default 90%.")
RULE_INT(Bots, PercentChanceToCastRoot, 75, "The chance for a bot to attempt to cast the given spell type in combat. Default 75%.") RULE_INT(Bots, PercentChanceToCastRoot, 75, "The chance for a bot to attempt to cast the given spell type in combat. Default 75%.")
RULE_INT(Bots, PercentChanceToCastBuff, 90, "The chance for a bot to attempt to cast the given spell type in combat. Default 90%.") RULE_INT(Bots, PercentChanceToCastBuff, 90, "The chance for a bot to attempt to cast the given spell type in combat. Default 90%.")
+16 -8
View File
@@ -2034,6 +2034,22 @@ uint8 Bot::GetChanceToCastBySpellType(uint16 spellType) //TODO bot rewrite - adj
case BotSpellTypes::AENukes: case BotSpellTypes::AENukes:
case BotSpellTypes::AERains: case BotSpellTypes::AERains:
case BotSpellTypes::AEStun: case BotSpellTypes::AEStun:
case BotSpellTypes::AESnare:
case BotSpellTypes::AEMez:
case BotSpellTypes::AESlow:
case BotSpellTypes::AEDebuff:
case BotSpellTypes::AEFear:
case BotSpellTypes::AEDispel:
case BotSpellTypes::AEDoT:
case BotSpellTypes::AELifetap:
case BotSpellTypes::AERoot:
case BotSpellTypes::PBAENuke:
return RuleI(Bots, PercentChanceToCastAEs);
case BotSpellTypes::GroupHeals:
case BotSpellTypes::GroupCompleteHeals:
case BotSpellTypes::GroupHoTHeals:
case BotSpellTypes::GroupCures:
return RuleI(Bots, PercentChanceToCastGroupHeal);
case BotSpellTypes::Nuke: case BotSpellTypes::Nuke:
return RuleI(Bots, PercentChanceToCastNuke); return RuleI(Bots, PercentChanceToCastNuke);
case BotSpellTypes::Root: case BotSpellTypes::Root:
@@ -2049,7 +2065,6 @@ uint8 Bot::GetChanceToCastBySpellType(uint16 spellType) //TODO bot rewrite - adj
return RuleI(Bots, PercentChanceToCastEscape); return RuleI(Bots, PercentChanceToCastEscape);
case BotSpellTypes::Lifetap: case BotSpellTypes::Lifetap:
return RuleI(Bots, PercentChanceToCastLifetap); return RuleI(Bots, PercentChanceToCastLifetap);
case BotSpellTypes::AESnare:
case BotSpellTypes::Snare: case BotSpellTypes::Snare:
return RuleI(Bots, PercentChanceToCastSnare); return RuleI(Bots, PercentChanceToCastSnare);
case BotSpellTypes::DOT: case BotSpellTypes::DOT:
@@ -2058,29 +2073,22 @@ uint8 Bot::GetChanceToCastBySpellType(uint16 spellType) //TODO bot rewrite - adj
return RuleI(Bots, PercentChanceToCastDispel); return RuleI(Bots, PercentChanceToCastDispel);
case BotSpellTypes::InCombatBuff: case BotSpellTypes::InCombatBuff:
return RuleI(Bots, PercentChanceToCastInCombatBuff); return RuleI(Bots, PercentChanceToCastInCombatBuff);
case BotSpellTypes::AEMez:
case BotSpellTypes::Mez: case BotSpellTypes::Mez:
return RuleI(Bots, PercentChanceToCastMez); return RuleI(Bots, PercentChanceToCastMez);
case BotSpellTypes::AESlow:
case BotSpellTypes::Slow: case BotSpellTypes::Slow:
return RuleI(Bots, PercentChanceToCastSlow); return RuleI(Bots, PercentChanceToCastSlow);
case BotSpellTypes::AEDebuff:
case BotSpellTypes::Debuff: case BotSpellTypes::Debuff:
return RuleI(Bots, PercentChanceToCastDebuff); return RuleI(Bots, PercentChanceToCastDebuff);
case BotSpellTypes::Cure: case BotSpellTypes::Cure:
return RuleI(Bots, PercentChanceToCastCure); return RuleI(Bots, PercentChanceToCastCure);
case BotSpellTypes::HateRedux: case BotSpellTypes::HateRedux:
return RuleI(Bots, PercentChanceToCastHateRedux); return RuleI(Bots, PercentChanceToCastHateRedux);
case BotSpellTypes::AEFear:
case BotSpellTypes::Fear: case BotSpellTypes::Fear:
return RuleI(Bots, PercentChanceToCastFear); return RuleI(Bots, PercentChanceToCastFear);
case BotSpellTypes::RegularHeal: case BotSpellTypes::RegularHeal:
case BotSpellTypes::CompleteHeal: case BotSpellTypes::CompleteHeal:
case BotSpellTypes::FastHeals: case BotSpellTypes::FastHeals:
case BotSpellTypes::VeryFastHeals: case BotSpellTypes::VeryFastHeals:
case BotSpellTypes::GroupHeals:
case BotSpellTypes::GroupCompleteHeals:
case BotSpellTypes::GroupHoTHeals:
case BotSpellTypes::HoTHeals: case BotSpellTypes::HoTHeals:
case BotSpellTypes::PetRegularHeals: case BotSpellTypes::PetRegularHeals:
case BotSpellTypes::PetCompleteHeals: case BotSpellTypes::PetCompleteHeals: