Core/Spells: reverted proc behaivior for pets and fixed applying spell mods for hunter pets and minions

This commit is contained in:
Ovahlord committed 2019-12-09 16:10:54 +01:00
1 parent cbaa290b0b
commit abb62cc76f
4 files changed
+8 -23

No files matched your search

+2 -1
View File
@@ -10932,12 +10932,13 @@ Player* Unit::GetSpellModOwner() const
if (Player* player = const_cast<Unit*>(this)->ToPlayer())
return player;
if (HasUnitTypeMask(UNIT_MASK_PET | UNIT_MASK_TOTEM | UNIT_MASK_GUARDIAN))
if (HasUnitTypeMask(UNIT_MASK_PET | UNIT_MASK_TOTEM | UNIT_MASK_GUARDIAN | UNIT_MASK_HUNTER_PET | UNIT_MASK_MINION))
{
if (Unit* owner = GetOwner())
if (Player* player = owner->ToPlayer())
return player;
}
return nullptr;
}