mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16: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
|
// Remove any stun effect on target
|
||||||
AuraMap& Auras = pVictim->GetAuras();
|
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 ||
|
if( spell->Mechanic == MECHANIC_STUN ||
|
||||||
spell->EffectMechanic[iter->second->GetEffIndex()] == MECHANIC_STUN)
|
spell->EffectMechanic[iter->second->GetEffIndex()] == MECHANIC_STUN)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7078"
|
#define REVISION_NR "7079"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue