v0.3.1: wand of frost no long freezes drops right as you kill an enemy
This commit is contained in:
@@ -48,10 +48,15 @@ public class WandOfFrost extends Wand {
|
||||
|
||||
@Override
|
||||
protected void onZap(Ballistica bolt) {
|
||||
|
||||
Heap heap = Dungeon.level.heaps.get(bolt.collisionPos);
|
||||
if (heap != null) {
|
||||
heap.freeze();
|
||||
}
|
||||
|
||||
Char ch = Actor.findChar(bolt.collisionPos);
|
||||
if (ch != null){
|
||||
|
||||
|
||||
int damage = Random.NormalIntRange(5+level, 10+(level*level/3));
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user