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
|
@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
|
||||||
|
|||||||
Reference in New Issue
Block a user