Skip to content

Commit

Permalink
Merge branch '3.3.5' of https://github.com/kvipka/AtieshCore into 3.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
justKvp committed Feb 9, 2023
2 parents 4c86ba7 + def910f commit ebaab6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2935,6 +2935,8 @@ void Unit::_UpdateSpells(uint32 time)
{
if (i->second->IsExpired())
RemoveOwnedAura(i, AURA_REMOVE_BY_EXPIRE);
else if (i->second->GetSpellInfo()->IsChanneled() && i->second->GetCasterGUID() != GetGUID() && !ObjectAccessor::GetWorldObject(*this, i->second->GetCasterGUID()))
RemoveOwnedAura(i, AURA_REMOVE_BY_CANCEL); // remove channeled auras when caster is not on the same map
else
++i;
}
Expand Down

0 comments on commit ebaab6e

Please sign in to comment.