spell interval problem

This commit is contained in:
Yunfan Li
2023-05-30 01:05:54 +08:00
parent 28532294e4
commit d4f2569f91

View File

@@ -24,10 +24,10 @@ bool SpellCastUsefulValue::Calculate()
}
else
{
uint32 lastSpellId = AI_VALUE(LastSpellCast&, "last spell cast").id;
if (spellid == lastSpellId)
if (Spell* const pSpell = bot->FindCurrentSpellBySpellId(lastSpellId))
return false;
// uint32 lastSpellId = AI_VALUE(LastSpellCast&, "last spell cast").id;
// if (spellid == lastSpellId)
// if (Spell* const pSpell = bot->FindCurrentSpellBySpellId(lastSpellId))
// return false;
}
if (spellInfo->IsAutoRepeatRangedSpell() && bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL) && bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)->m_spellInfo->Id == spellid)