v0.8.1: fixed golden lotus spawning on other characters
This commit is contained in:
parent
c5285af0bf
commit
aeb554a07c
|
@ -114,15 +114,16 @@ public class WandOfRegrowth extends Wand {
|
||||||
if (chargesPerCast() >= 3){
|
if (chargesPerCast() >= 3){
|
||||||
Lotus l = new Lotus();
|
Lotus l = new Lotus();
|
||||||
l.setLevel(buffedLvl());
|
l.setLevel(buffedLvl());
|
||||||
if (cells.contains(target)){
|
if (cells.contains(target) && Actor.findChar(target) == null){
|
||||||
cells.remove((Integer)target);
|
cells.remove((Integer)target);
|
||||||
l.pos = target;
|
l.pos = target;
|
||||||
GameScene.add(l);
|
GameScene.add(l);
|
||||||
} else {
|
} else {
|
||||||
for (int i = bolt.path.size()-1; i >= 0; i--){
|
for (int i = bolt.path.size()-1; i >= 0; i--){
|
||||||
if (cells.contains(bolt.path.get(i))){
|
int c = bolt.path.get(i);
|
||||||
cells.remove((Integer)bolt.path.get(i));
|
if (cells.contains(c) && Actor.findChar(c) == null){
|
||||||
l.pos = bolt.path.get(i);
|
cells.remove((Integer)c);
|
||||||
|
l.pos = c;
|
||||||
GameScene.add(l);
|
GameScene.add(l);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user