v0.6.2d: fixed various crash bugs and added safety checks
This commit is contained in:
parent
433d862882
commit
62c5aeffc8
|
@ -80,8 +80,10 @@ public class SpellSprite extends Image {
|
||||||
public void update() {
|
public void update() {
|
||||||
super.update();
|
super.update();
|
||||||
|
|
||||||
x = target.sprite.center().x - SIZE / 2;
|
if (target.sprite != null) {
|
||||||
y = target.sprite.y - SIZE;
|
x = target.sprite.center().x - SIZE / 2;
|
||||||
|
y = target.sprite.y - SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
switch (phase) {
|
switch (phase) {
|
||||||
case FADE_IN:
|
case FADE_IN:
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class MageArmor extends ClassArmor {
|
||||||
@Override
|
@Override
|
||||||
public void doSpecial() {
|
public void doSpecial() {
|
||||||
|
|
||||||
for (Mob mob : Dungeon.level.mobs) {
|
for (Mob mob : Dungeon.level.mobs.toArray(new Mob[0])) {
|
||||||
if (Dungeon.level.heroFOV[mob.pos]) {
|
if (Dungeon.level.heroFOV[mob.pos]) {
|
||||||
Buff.affect( mob, Burning.class ).reignite( mob );
|
Buff.affect( mob, Burning.class ).reignite( mob );
|
||||||
Buff.prolong( mob, Roots.class, 3 );
|
Buff.prolong( mob, Roots.class, 3 );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user