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

Port From (https://github.com/TrinityCore/TrinityCore/commit/acb4934f766321efbf90d0c6716f2df44c47ef16)
This commit is contained in:
hondacrx
2020-08-24 10:34:53 -04:00
parent 5bc078060f
commit ca4f55b20a
+2 -1
View File
@@ -779,7 +779,8 @@ namespace Game.Entities
{
if (_lastLiquid != null && _lastLiquid.SpellID != 0)
RemoveAurasDueToSpell(_lastLiquid.SpellID);
if (curLiquid != null && curLiquid.SpellID != 0)
Player player = GetCharmerOrOwnerPlayerOrPlayerItself();
if (curLiquid != null && curLiquid.SpellID != 0 && (!player || !player.IsGameMaster()))
CastSpell(this, curLiquid.SpellID, true);
_lastLiquid = curLiquid;
}