fix(Core/Spells): Flasks should not be overridden by elixirs. (#10301)

* fix(Core/Spells): Flasks should not be overridden by elixirs.
This commit is contained in:
UltraNix
2022-02-12 15:51:27 +01:00
committed by GitHub
parent 5b26f05f5d
commit 89deb60d43
4 changed files with 65 additions and 1 deletions

View File

@@ -7279,7 +7279,15 @@ void Player::CastItemUseSpell(Item* item, SpellCastTargets const& targets, uint8
}
if (HasSpellCooldown(spellInfo->Id))
{
continue;
}
if (!spellInfo->CheckElixirStacking(this))
{
Spell::SendCastResult(this, spellInfo, cast_count, SPELL_FAILED_AURA_BOUNCED);
continue;
}
Spell* spell = new Spell(this, spellInfo, (count > 0) ? TRIGGERED_FULL_MASK : TRIGGERED_NONE);
spell->m_CastItem = item;