v0.9.4: fixed spectral blades not going through allies
This commit is contained in:
parent
0f8c5126e7
commit
2987ed1c19
|
@ -138,12 +138,10 @@ public class SpectralBlades extends ArmorAbility {
|
|||
for (int cell : path.path){
|
||||
Char ch = Actor.findChar(cell);
|
||||
if (ch != null){
|
||||
if (ch == hero || existingTargets.contains(ch)){
|
||||
if (ch == hero || existingTargets.contains(ch) || ch.alignment == Char.Alignment.ALLY){
|
||||
continue;
|
||||
} else if (ch.alignment != Char.Alignment.ALLY){
|
||||
return ch;
|
||||
} else {
|
||||
return null;
|
||||
return ch;
|
||||
}
|
||||
}
|
||||
if (Dungeon.level.solid[cell]){
|
||||
|
|
Loading…
Reference in New Issue
Block a user