[8476] Revert some recent cleanup changes, some other fixes and cleanups.

This commit is contained in:
VladimirMangos 2009-09-05 22:06:53 +04:00
parent bd30769dec
commit 7a2df3c309
7 changed files with 18 additions and 21 deletions

View file

@ -1462,7 +1462,7 @@ float Creature::GetAttackDistance(Unit const* pl) const
uint32 playerlevel = pl->getLevelForTarget(this);
uint32 creaturelevel = getLevelForTarget(pl);
int32 leveldif = playerlevel - creaturelevel;
int32 leveldif = int32(playerlevel) - int32(creaturelevel);
// "The maximum Aggro Radius has a cap of 25 levels under. Example: A level 30 char has the same Aggro Radius of a level 5 char on a level 60 mob."
if ( leveldif < - 25)