From d4f2569f917e7befdfee4b34cdcdbd9690d5682f Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 30 May 2023 01:05:54 +0800 Subject: [PATCH] spell interval problem --- src/strategy/values/SpellCastUsefulValue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strategy/values/SpellCastUsefulValue.cpp b/src/strategy/values/SpellCastUsefulValue.cpp index 2434abff..ee7b5299 100644 --- a/src/strategy/values/SpellCastUsefulValue.cpp +++ b/src/strategy/values/SpellCastUsefulValue.cpp @@ -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)