*Do not allow to save player single target spellstolen auras to prevent crash.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-30 17:34:08 +02:00
parent 13758fcae1
commit d193b687e8
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -16320,7 +16320,7 @@ void Player::_SaveAuras()
continue; continue;
bool isCaster = itr->second->GetCasterGUID() == GetGUID(); bool isCaster = itr->second->GetCasterGUID() == GetGUID();
if (!isCaster) if (!isCaster)
if (itr->second->IsSingleTarget() if (IsSingleTargetSpell(itr->second->GetSpellProto())
|| itr->second->IsAreaAura()) || itr->second->IsAreaAura())
continue; continue;
-1
View File
@@ -3889,7 +3889,6 @@ bool Unit::AddAura(Aura *Aur, bool handleEffects)
//***************************************************** //*****************************************************
if(AuraState aState = GetSpellAuraState(Aur->GetSpellProto())) if(AuraState aState = GetSpellAuraState(Aur->GetSpellProto()))
{ {
bool found = false;
m_auraStateAuras.insert(AuraStateAurasMap::value_type(aState, Aur)); m_auraStateAuras.insert(AuraStateAurasMap::value_type(aState, Aur));
ModifyAuraState(aState, true); ModifyAuraState(aState, true);
} }