@Override public void calc(Env env) { L2Character p = env.getCharacter(); // CT2: The magic critical rate has been increased to 50 times. if (p.isPlayer()) { env.mulValue(BaseStats.WIT.calcBonus(p)); } else { env.mulValue(BaseStats.WIT.calcBonus(p) * 10.0); } }
@Override public boolean testImpl(Env env) { if (env.getTarget() == null) { return false; } if (!(env.getTarget() instanceof L2MonsterInstance)) { return false; } return env.getTarget().getCurrentHp() * 100 / env.getTarget().getMaxVisibleHp() <= _hp; }