v1.1.0: added a safety check to spellsprite

This commit is contained in:
Evan Debenham 2021-11-08 15:45:07 -05:00
parent 5670306131
commit 94facc9bf5

View File

@ -87,6 +87,10 @@ public class SpellSprite extends Image {
y = target.sprite.y - SIZE;
}
if (phase == null){
return;
}
switch (phase) {
case FADE_IN:
alpha( passed / duration );