mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7079] Redundant sSpellStore looking removed.
Removed not used variable in for cycle. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
08864a7288
commit
e8d32763a6
2 changed files with 3 additions and 3 deletions
|
|
@ -4729,9 +4729,9 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
|
||||
// Remove any stun effect on target
|
||||
AuraMap& Auras = pVictim->GetAuras();
|
||||
for(AuraMap::iterator iter = Auras.begin(), next; iter != Auras.end();)
|
||||
for(AuraMap::iterator iter = Auras.begin(); iter != Auras.end();)
|
||||
{
|
||||
SpellEntry const *spell = sSpellStore.LookupEntry(iter->second->GetSpellProto()->Id);
|
||||
SpellEntry const *spell = iter->second->GetSpellProto();
|
||||
if( spell->Mechanic == MECHANIC_STUN ||
|
||||
spell->EffectMechanic[iter->second->GetEffIndex()] == MECHANIC_STUN)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue