Core/Creatures: Remove template immunities only for hunter pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/ecb44f82a41c6053ddbd30dd087974134b53810b)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user