Core/Unit: Don't apply liquid effects to game masters.
Port From (https://github.com/TrinityCore/TrinityCore/commit/acb4934f766321efbf90d0c6716f2df44c47ef16)
This commit is contained in:
@@ -779,7 +779,8 @@ namespace Game.Entities
|
|||||||
{
|
{
|
||||||
if (_lastLiquid != null && _lastLiquid.SpellID != 0)
|
if (_lastLiquid != null && _lastLiquid.SpellID != 0)
|
||||||
RemoveAurasDueToSpell(_lastLiquid.SpellID);
|
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);
|
CastSpell(this, curLiquid.SpellID, true);
|
||||||
_lastLiquid = curLiquid;
|
_lastLiquid = curLiquid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user