v2.5.3: fixed invis fx persisting if player time froze while invis
This commit is contained in:
@@ -74,7 +74,10 @@ public class TimeStasis extends FlavourBuff {
|
||||
@Override
|
||||
public void fx(boolean on) {
|
||||
if (on) target.sprite.add( CharSprite.State.PARALYSED );
|
||||
else if (target.invisible == 0) target.sprite.remove( CharSprite.State.PARALYSED );
|
||||
else {
|
||||
if (target.paralysed == 0) target.sprite.remove( CharSprite.State.PARALYSED );
|
||||
if (target.invisible == 0) target.sprite.remove( CharSprite.State.INVISIBLE );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -325,7 +325,10 @@ public class TimekeepersHourglass extends Artifact {
|
||||
@Override
|
||||
public void fx(boolean on) {
|
||||
if (on) target.sprite.add( CharSprite.State.PARALYSED );
|
||||
else if (target.invisible == 0) target.sprite.remove( CharSprite.State.PARALYSED );
|
||||
else {
|
||||
if (target.paralysed == 0) target.sprite.remove( CharSprite.State.PARALYSED );
|
||||
if (target.invisible == 0) target.sprite.remove( CharSprite.State.INVISIBLE );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user