Core/Entities: allow guardian pets to inherit spellmods
Port From (https://github.com/TrinityCore/TrinityCore/commit/3698f3a26203be05480b1673d1595e52e2534445)
This commit is contained in:
@@ -2015,7 +2015,8 @@ namespace Game.Entities
|
||||
{
|
||||
if (IsTypeId(TypeId.Player))
|
||||
return ToPlayer();
|
||||
if (IsPet() || IsTotem())
|
||||
|
||||
if (HasUnitTypeMask(UnitTypeMask.Pet | UnitTypeMask.Totem | UnitTypeMask.Guardian))
|
||||
{
|
||||
Unit owner = GetOwner();
|
||||
if (owner != null && owner.IsTypeId(TypeId.Player))
|
||||
|
||||
Reference in New Issue
Block a user