Added missing final modifiers.

This commit is contained in:
MobiusDev
2015-12-26 12:03:36 +00:00
parent cc92e5d062
commit e0d681a17e
974 changed files with 5919 additions and 5917 deletions

View File

@@ -57,15 +57,15 @@ public final class ManaHealPercent extends AbstractEffect
@Override
public void onStart(BuffInfo info)
{
L2Character target = info.getEffected();
final L2Character target = info.getEffected();
if ((target == null) || target.isDead() || target.isDoor())
{
return;
}
double amount = 0;
double power = _power;
boolean full = (power == 100.0);
final double power = _power;
final boolean full = (power == 100.0);
amount = full ? target.getMaxMp() : (target.getMaxMp() * power) / 100.0;
// Prevents overheal and negative amount