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

This commit is contained in:
Treeston authored and Aokromes committed 2017-08-03 19:39:45 +02:00
1 parent 327aeb29dd
commit 867ca8817f
1 file changed
+2 -1
+2 -1
View File
@@ -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;
}