mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 02:38:45 +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);
|
range = GetActSpellRange(spell_id, range);
|
||||||
|
|
||||||
if (IsIllusionSpell(spell_id) && (HasProjectIllusion())) {
|
if (IsIllusionSpell(spell_id) && (HasProjectIllusion())) {
|
||||||
|
if (HasProjectIllusion() && IsIllusionSpell(spell_id)) {
|
||||||
range = 100;
|
range = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user