Core/Creatures: Remove template immunities only for hunter pets

Port From (https://github.com/TrinityCore/TrinityCore/commit/ecb44f82a41c6053ddbd30dd087974134b53810b)
This commit is contained in:
hondacrx
2019-08-17 12:56:03 -04:00
parent 74aae32803
commit f2f8afb7a4
+1 -1
View File
@@ -1716,7 +1716,7 @@ namespace Game.Entities
bool HasMechanicTemplateImmunity(uint mask)
{
return !GetOwnerGUID().IsPlayer() && GetCreatureTemplate().MechanicImmuneMask.HasAnyFlag(mask);
return (!GetOwnerGUID().IsPlayer() || !IsHunterPet()) && GetCreatureTemplate().MechanicImmuneMask.HasAnyFlag(mask);
}
public override bool IsImmunedToSpell(SpellInfo spellInfo, Unit caster)