v1.1.0: added a safety check to spellsprite
This commit is contained in:
parent
5670306131
commit
94facc9bf5
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user