mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7253] Check battleground status in GetSpellAllowedInLocationError for some spells for aura remove and spell casting cases.
This commit is contained in:
parent
100429f29c
commit
e97c7ad9c5
6 changed files with 41 additions and 12 deletions
|
|
@ -18935,7 +18935,7 @@ void Player::UpdateAreaDependentAuras( uint32 newArea )
|
|||
for(AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end();)
|
||||
{
|
||||
// use m_zoneUpdateId for speed: UpdateArea called from UpdateZone or instead UpdateZone in both cases m_zoneUpdateId up-to-date
|
||||
if(GetSpellAllowedInLocationError(iter->second->GetSpellProto(),GetMapId(),m_zoneUpdateId,newArea)!=0)
|
||||
if(GetSpellAllowedInLocationError(iter->second->GetSpellProto(),GetMapId(),m_zoneUpdateId,newArea,GetBattleGroundId())!=0)
|
||||
RemoveAura(iter);
|
||||
else
|
||||
++iter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue