mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Unit: Don't apply liquid effects to game masters.
(cherry picked from commit 2644fa703a)
This commit is contained in:
@@ -3185,7 +3185,8 @@ void Unit::ProcessTerrainStatusUpdate(ZLiquidStatus status, Optional<LiquidData>
|
||||
{
|
||||
if (_lastLiquid && _lastLiquid->SpellID)
|
||||
RemoveAurasDueToSpell(_lastLiquid->SpellID);
|
||||
if (curLiquid && curLiquid->SpellID)
|
||||
Player* player = GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
if (curLiquid && curLiquid->SpellID && (!player || !player->IsGameMaster()))
|
||||
CastSpell(this, curLiquid->SpellID, true);
|
||||
_lastLiquid = curLiquid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user