mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +00:00
Fix performance in IsValidSpellRange by flipping HasProjectIllusion
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user