Core/Unit: Don't apply liquid effects to game masters.
This commit is contained in:
1 parent
327aeb29dd
commit
867ca8817f
1 file changed
+2
-1
@@ -3139,7 +3139,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