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

(cherry picked from commit 2644fa703a)
This commit is contained in:
Treeston
2017-08-03 19:38:15 +02:00
committed by Shauren
parent 50a64ccd1e
commit acb4934f76

View File

@@ -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;
}