[10569] Don't save holders from channeled spells

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
zergtmn 2010-10-01 12:01:57 +02:00 committed by Laise
parent f3903d2261
commit ead698e881
3 changed files with 5 additions and 5 deletions

View file

@ -16969,9 +16969,9 @@ void Player::_SaveAuras()
for(SpellAuraHolderMap::const_iterator itr = auraHolders.begin(); itr != auraHolders.end(); ++itr)
{
SpellAuraHolder *holder = itr->second;
//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 (!holder->IsPassive() && (holder->GetCasterGUID() == GetGUID() || !holder->IsSingleTarget()))
if (!holder->IsPassive() && !IsChanneledSpell(holder->GetSpellProto()) && (holder->GetCasterGUID() == GetGUID() || !holder->IsSingleTarget()))
{
int32 damage[MAX_EFFECT_INDEX];
int32 remaintime[MAX_EFFECT_INDEX];