mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 13:37:02 +00:00
[10569] Don't save holders from channeled spells
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
f3903d2261
commit
ead698e881
3 changed files with 5 additions and 5 deletions
|
|
@ -1253,9 +1253,9 @@ void Pet::_SaveAuras()
|
|||
}
|
||||
}
|
||||
|
||||
//skip all holders from spells that are passive
|
||||
//skip all holders from spells that are passive or channeled
|
||||
//do not save single target holders (unless they were cast by the player)
|
||||
if (save && !holder->IsPassive() && (holder->GetCasterGUID() == GetGUID() || !holder->IsSingleTarget()))
|
||||
if (save && !holder->IsPassive() && !IsChanneledSpell(holder->GetSpellProto()) && (holder->GetCasterGUID() == GetGUID() || !holder->IsSingleTarget()))
|
||||
{
|
||||
int32 damage[MAX_EFFECT_INDEX];
|
||||
int32 remaintime[MAX_EFFECT_INDEX];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue