v0.6.2: fixed a rare crash with cursed wands
This commit is contained in:
+4
-1
@@ -153,7 +153,10 @@ public class CursedWand {
|
|||||||
cursedFX(user, bolt, new Callback() {
|
cursedFX(user, bolt, new Callback() {
|
||||||
public void call() {
|
public void call() {
|
||||||
Char ch = Actor.findChar( bolt.collisionPos );
|
Char ch = Actor.findChar( bolt.collisionPos );
|
||||||
if (ch != null && !ch.properties().contains(Char.Property.IMMOVABLE)) {
|
if (ch == user){
|
||||||
|
ScrollOfTeleportation.teleportHero(user);
|
||||||
|
wand.wandUsed();
|
||||||
|
} else if (ch != null && !ch.properties().contains(Char.Property.IMMOVABLE)) {
|
||||||
int count = 10;
|
int count = 10;
|
||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
|
|||||||
Reference in New Issue
Block a user