Cleanup and reorganization of Unit and SpellEntry headers. (#312)

* Move some unit and spell defines to dedicated header.

* Reorder functions in unit header.

* Clean up until spell category.

* Finish cleaning up spell functions.

* Cleanup combat system methods.

* Done cleaning up unit header.

* Reduce not needed includes.
This commit is contained in:
ratkosrb
2019-11-24 22:20:44 +02:00
committed by GitHub
parent df76eff1d3
commit 66659fe13f
374 changed files with 7116 additions and 7379 deletions
+1 -1
View File
@@ -2605,7 +2605,7 @@ WorldObject* GetTargetByType(WorldObject* pSource, WorldObject* pTarget, uint8 T
return pTarget;
case TARGET_T_HOSTILE:
if (Unit* pUnitSource = ToUnit(pSource))
return pUnitSource->getVictim();
return pUnitSource->GetVictim();
break;
case TARGET_T_HOSTILE_SECOND_AGGRO:
if (Creature* pCreatureSource = ToCreature(pSource))