Closed CanIGetaPR closed 5 years ago
Affirmative.
Oh, unfortunately, that was an expected case... That code sect expects a call for MapleCharacter::recalcLocalStats()
, which is postponed to happen in here:
@Override
public void onHpmpPoolUpdate() {
List<Pair<MapleStat, Integer>> hpmpupdate = recalcLocalStats();
To overcome this roundabout measure, perhaps another solution would be to refactor out AbstractMapleCharacterObject, thus making the stat business logic within MapleCharacter.
In another wind, to avoid the misuse of onHpmpPoolUpdate()
, creating a new listener to carry out the AP stat update may suit it better.
There is code here when you do the stat update:
However, poolUpdate only does the HpMp trigger, there is no AP trigger: