mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8476] Revert some recent cleanup changes, some other fixes and cleanups.
This commit is contained in:
parent
bd30769dec
commit
7a2df3c309
7 changed files with 18 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue