Skip to content

Commit

Permalink
[11181] Small optimization for [11179]
Browse files Browse the repository at this point in the history
  • Loading branch information
zergtmn committed Feb 17, 2011
1 parent 924397c commit 6cce8bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11180"
#define REVISION_NR "11181"
#endif // __REVISION_NR_H__

0 comments on commit 6cce8bb

Please sign in to comment.