mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
spell interval problem
This commit is contained in:
parent
28532294e4
commit
d4f2569f91
@ -24,10 +24,10 @@ bool SpellCastUsefulValue::Calculate()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
uint32 lastSpellId = AI_VALUE(LastSpellCast&, "last spell cast").id;
|
// uint32 lastSpellId = AI_VALUE(LastSpellCast&, "last spell cast").id;
|
||||||
if (spellid == lastSpellId)
|
// if (spellid == lastSpellId)
|
||||||
if (Spell* const pSpell = bot->FindCurrentSpellBySpellId(lastSpellId))
|
// if (Spell* const pSpell = bot->FindCurrentSpellBySpellId(lastSpellId))
|
||||||
return false;
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spellInfo->IsAutoRepeatRangedSpell() && bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL) && bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)->m_spellInfo->Id == spellid)
|
if (spellInfo->IsAutoRepeatRangedSpell() && bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL) && bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)->m_spellInfo->Id == spellid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user