Core/Unit: Don't apply liquid effects to game masters.

This commit is contained in:
Treeston
2017-08-03 19:38:15 +02:00
parent 6691e41873
commit 2644fa703a

View File

@@ -3391,7 +3391,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;
}