mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
Positive auras can be cancelled once again :)
This commit is contained in:
parent
1d3667e765
commit
2c1671ef5c
3 changed files with 10 additions and 7 deletions
|
|
@ -969,7 +969,7 @@ void Aura::_AddAura()
|
|||
if(slot < MAX_AURAS) // slot found
|
||||
{
|
||||
SetAura(false);
|
||||
SetAuraFlags((1 << GetEffIndex()) | AFLAG_NOT_GUID | (GetAuraMaxDuration() ? AFLAG_DURATION : AFLAG_NONE) | (IsPositive() ? AFLAG_NONE : AFLAG_NEGATIVE));
|
||||
SetAuraFlags((1 << GetEffIndex()) | AFLAG_NOT_CASTER | ((GetAuraMaxDuration() > 0) ? AFLAG_DURATION : AFLAG_NONE) | (IsPositive() ? AFLAG_POSITIVE : AFLAG_NEGATIVE));
|
||||
SetAuraLevel(caster ? caster->getLevel() : sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL));
|
||||
UpdateAuraCharges();
|
||||
SendAuraUpdate(false);
|
||||
|
|
@ -1126,7 +1126,7 @@ void Aura::SendAuraUpdate(bool remove)
|
|||
data << uint8(GetAuraLevel());
|
||||
data << uint8(GetAuraCharges());
|
||||
|
||||
if(!(auraFlags & AFLAG_NOT_GUID))
|
||||
if(!(auraFlags & AFLAG_NOT_CASTER))
|
||||
{
|
||||
data << uint8(0); // pguid
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue