Core/Entities: allow guardian pets to inherit spellmods

Port From (https://github.com/TrinityCore/TrinityCore/commit/3698f3a26203be05480b1673d1595e52e2534445)
This commit is contained in:
hondacrx
2020-06-19 20:05:40 -04:00
parent 6f6f49ec02
commit c1f79334ef
+2 -1
View File
@@ -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))