Fix performance in IsValidSpellRange by flipping HasProjectIllusion

This commit is contained in:
nytmyr
2024-12-20 09:43:51 -06:00
parent 66356a3d6e
commit e710fbea34
+1
View File
@@ -2694,6 +2694,7 @@ bool Bot::IsValidSpellRange(uint16 spell_id, Mob* tar) {
range = GetActSpellRange(spell_id, range);
if (IsIllusionSpell(spell_id) && (HasProjectIllusion())) {
if (HasProjectIllusion() && IsIllusionSpell(spell_id)) {
range = 100;
}