v2.5.3: fixed invis fx persisting if player time froze while invis
This commit is contained in:
+4
-1
@@ -74,7 +74,10 @@ public class TimeStasis extends FlavourBuff {
|
|||||||
@Override
|
@Override
|
||||||
public void fx(boolean on) {
|
public void fx(boolean on) {
|
||||||
if (on) target.sprite.add( CharSprite.State.PARALYSED );
|
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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -325,7 +325,10 @@ public class TimekeepersHourglass extends Artifact {
|
|||||||
@Override
|
@Override
|
||||||
public void fx(boolean on) {
|
public void fx(boolean on) {
|
||||||
if (on) target.sprite.add( CharSprite.State.PARALYSED );
|
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