v3.2.2: fixed paralysis resist not working properly
This commit is contained in:
@@ -98,7 +98,7 @@ public class Paralysis extends FlavourBuff {
|
|||||||
public boolean act() {
|
public boolean act() {
|
||||||
if (target.buff(Paralysis.class) == null) {
|
if (target.buff(Paralysis.class) == null) {
|
||||||
damage -= Math.ceil(damage / 10f);
|
damage -= Math.ceil(damage / 10f);
|
||||||
if (damage >= 0) detach();
|
if (damage <= 0) detach();
|
||||||
}
|
}
|
||||||
spend(TICK);
|
spend(TICK);
|
||||||
return true;
|
return true;
|
||||||
@@ -109,13 +109,13 @@ public class Paralysis extends FlavourBuff {
|
|||||||
@Override
|
@Override
|
||||||
public void storeInBundle(Bundle bundle) {
|
public void storeInBundle(Bundle bundle) {
|
||||||
super.storeInBundle(bundle);
|
super.storeInBundle(bundle);
|
||||||
damage = bundle.getInt(DAMAGE);
|
bundle.put( DAMAGE, damage );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void restoreFromBundle(Bundle bundle) {
|
public void restoreFromBundle(Bundle bundle) {
|
||||||
super.restoreFromBundle(bundle);
|
super.restoreFromBundle(bundle);
|
||||||
bundle.put( DAMAGE, damage );
|
damage = bundle.getInt(DAMAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user