Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura
Port From (https://github.com/TrinityCore/TrinityCore/commit/9d865f7536ae6feda6fba77785e4548f95ca5d03)
This commit is contained in:
@@ -1324,6 +1324,10 @@ namespace Game.Spells
|
||||
if (gameObjTarget != null)
|
||||
{
|
||||
GameObjectTemplate goInfo = gameObjTarget.GetGoInfo();
|
||||
|
||||
if (goInfo.GetNoDamageImmune() != 0 && player.HasUnitFlag(UnitFlags.Immune))
|
||||
return;
|
||||
|
||||
// Arathi Basin banner opening. // @todo Verify correctness of this check
|
||||
if ((goInfo.type == GameObjectTypes.Button && goInfo.Button.noDamageImmune != 0) ||
|
||||
(goInfo.type == GameObjectTypes.Goober && goInfo.Goober.requireLOS != 0))
|
||||
|
||||
Reference in New Issue
Block a user