AutoAggro & MoveLife handler update + minor patches

Changed some handlers to reuse MapleMap variable, preventing some minor inconsistencies.
Applied minor patches over the source.
This commit is contained in:
ronancpl
2018-01-11 12:29:43 -02:00
parent 1190513d0c
commit c4c3f58f41
10 changed files with 119 additions and 100 deletions

View File

@@ -3858,12 +3858,13 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
}
public int getFh() {
Point pos = this.getPosition();
pos.y -= 6;
if (getMap().getFootholds().findBelow(pos) == null) {
Point pos = this.getPosition();
pos.y -= 6;
if (map.getFootholds().findBelow(pos) == null) {
return 0;
} else {
return getMap().getFootholds().findBelow(pos).getY1();
return map.getFootholds().findBelow(pos).getY1();
}
}