mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix triggered charged buff check
This commit is contained in:
parent
c2a023afa2
commit
462e99ec30
@ -2928,7 +2928,10 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Unit* oldSel = bot->GetSelectedUnit();
|
Unit* oldSel = bot->GetSelectedUnit();
|
||||||
Spell* spell = new Spell(bot, spellInfo, TRIGGERED_NONE);
|
// TRIGGERED_IGNORE_POWER_AND_REAGENT_COST flag for not calling CheckPower in check
|
||||||
|
// which causes buff charge to be ineffectively reduced (e.g. dk freezing fog for howling blast)
|
||||||
|
/// @TODO: Fix all calling on ApplySpellMod
|
||||||
|
Spell* spell = new Spell(bot, spellInfo, TRIGGERED_IGNORE_POWER_AND_REAGENT_COST);
|
||||||
|
|
||||||
spell->m_targets.SetUnitTarget(target);
|
spell->m_targets.SetUnitTarget(target);
|
||||||
spell->m_CastItem = castItem;
|
spell->m_CastItem = castItem;
|
||||||
@ -2938,7 +2941,6 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell,
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
spell->m_targets.SetItemTarget(itemTarget);
|
spell->m_targets.SetItemTarget(itemTarget);
|
||||||
|
|
||||||
SpellCastResult result = spell->CheckCast(true);
|
SpellCastResult result = spell->CheckCast(true);
|
||||||
delete spell;
|
delete spell;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user