Improved Mushroom Castle + Body Pressure patch
Improved the gameplay around the Mushroom Castle region. Solved an issue with HP threshold on MoveLifeHandler. Fixed Body Pressure being refreshed every time it hits a mob.
This commit is contained in:
@@ -162,7 +162,7 @@ public abstract class AbstractDealDamageHandler extends AbstractMaplePacketHandl
|
||||
if (player.isAlive()) {
|
||||
if(attack.skill == NightWalker.POISON_BOMB) // Poison Bomb
|
||||
attackEffect.applyTo(player, new Point(attack.position.x, attack.position.y));
|
||||
else
|
||||
else if(attack.skill != Aran.BODY_PRESSURE) // prevent BP refreshing
|
||||
attackEffect.applyTo(player);
|
||||
} else {
|
||||
player.getClient().announce(MaplePacketCreator.enableActions());
|
||||
|
||||
@@ -78,8 +78,8 @@ public final class MoveLifeHandler extends AbstractMovementPacketHandler {
|
||||
|
||||
MobSkill toUse = null;
|
||||
|
||||
int percHpLeft = (int) ((monster.getHp() / monster.getMaxHp()) * 100);
|
||||
|
||||
int percHpLeft = (int) (((float) monster.getHp() / monster.getMaxHp()) * 100);
|
||||
|
||||
if (nextMovementCouldBeSkill && monster.getNoSkills() > 0) {
|
||||
int Random = Randomizer.nextInt(monster.getNoSkills());
|
||||
Pair<Integer, Integer> skillToUse = monster.getSkills().get(Random);
|
||||
|
||||
@@ -48,7 +48,6 @@ public final class LoginPasswordHandler implements MaplePacketHandler {
|
||||
|
||||
String login = slea.readMapleAsciiString();
|
||||
String pwd = slea.readMapleAsciiString();
|
||||
String bcryptedpass = BCrypt.hashpw(pwd, BCrypt.gensalt(12));
|
||||
c.setAccountName(login);
|
||||
|
||||
int loginok = c.login(login, pwd);
|
||||
|
||||
Reference in New Issue
Block a user