Some spell target check changes.
This commit is contained in:
@@ -158,6 +158,11 @@ Unit* DynamicObject::GetUnitCaster() const
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Player* DynamicObject::GetAffectingPlayer() const
|
||||
{
|
||||
return ::ToPlayer(GetUnitCaster());
|
||||
}
|
||||
|
||||
uint32 DynamicObject::GetFactionTemplateId() const
|
||||
{
|
||||
return GetCaster()->GetFactionTemplateId();
|
||||
|
||||
Reference in New Issue
Block a user