[9615] Send AFLAG_NOT_CASTER only if casterguid == targetguid.

This commit is contained in:
XTZGZoReX 2010-03-25 11:21:13 +01:00
parent 0bf2d2b71a
commit 420429fdcf
2 changed files with 2 additions and 2 deletions

View file

@ -1029,7 +1029,7 @@ void Aura::_AddAura()
if(slot < MAX_AURAS) // slot found send data to client
{
SetAura(false);
SetAuraFlags((1 << GetEffIndex()) | AFLAG_NOT_CASTER | ((GetAuraMaxDuration() > 0) ? AFLAG_DURATION : AFLAG_NONE) | (IsPositive() ? AFLAG_POSITIVE : AFLAG_NEGATIVE));
SetAuraFlags((1 << GetEffIndex()) | ((GetCasterGUID() == GetTarget()->GetGUID()) ? AFLAG_NOT_CASTER : AFLAG_NONE) | ((GetAuraMaxDuration() > 0) ? AFLAG_DURATION : AFLAG_NONE) | (IsPositive() ? AFLAG_POSITIVE : AFLAG_NEGATIVE));
SetAuraLevel(caster ? caster->getLevel() : sWorld.getConfig(CONFIG_UINT32_MAX_PLAYER_LEVEL));
SendAuraUpdate(false);
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9614"
#define REVISION_NR "9615"
#endif // __REVISION_NR_H__