v0.3.1: wand of frost no long freezes drops right as you kill an enemy

This commit is contained in:
Evan Debenham
2015-06-26 11:44:33 -04:00
parent 6d0f143c4b
commit e26823e32b
@@ -48,10 +48,15 @@ public class WandOfFrost extends Wand {
@Override @Override
protected void onZap(Ballistica bolt) { protected void onZap(Ballistica bolt) {
Heap heap = Dungeon.level.heaps.get(bolt.collisionPos);
if (heap != null) {
heap.freeze();
}
Char ch = Actor.findChar(bolt.collisionPos); Char ch = Actor.findChar(bolt.collisionPos);
if (ch != null){ if (ch != null){
int damage = Random.NormalIntRange(5+level, 10+(level*level/3)); int damage = Random.NormalIntRange(5+level, 10+(level*level/3));
if (ch.buff(Frost.class) != null){ if (ch.buff(Frost.class) != null){
@@ -77,12 +82,6 @@ public class WandOfFrost extends Wand {
} }
} }
} }
Heap heap = Dungeon.level.heaps.get(bolt.collisionPos);
if (heap != null) {
heap.freeze();
}
} }
@Override @Override