mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11181] Small optimization for [11179]
This commit is contained in:
parent
06d36feed2
commit
57ebd5371d
2 changed files with 3 additions and 3 deletions
|
|
@ -6554,9 +6554,9 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
if (Aura* pAura = unitTarget->GetAura(m_spellInfo->Id, EFFECT_INDEX_0))
|
||||
if (SpellAuraHolder* pHolder = unitTarget->GetSpellAuraHolder(m_spellInfo->Id))
|
||||
{
|
||||
if (pAura->GetStackAmount() >= m_spellInfo->StackAmount - 1)
|
||||
if (pHolder->GetStackAmount() + 1 >= m_spellInfo->StackAmount)
|
||||
{
|
||||
// Gluttonous Lurkers: Summon Gorged Lurking Basilisk
|
||||
unitTarget->CastSpell(m_caster, 50928, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue