v0.3.3: added char properties, starting with IMMOVABLE implementation
This commit is contained in:
@@ -155,7 +155,7 @@ public class CursedWand {
|
||||
cursedFX(user, bolt, new Callback() {
|
||||
public void call() {
|
||||
Char ch = Actor.findChar( bolt.collisionPos );
|
||||
if (ch != null) {
|
||||
if (ch != null && !ch.properties().contains(Char.Property.IMMOVABLE)) {
|
||||
int count = 10;
|
||||
int pos;
|
||||
do {
|
||||
|
||||
@@ -112,7 +112,7 @@ public class WandOfBlastWave extends Wand {
|
||||
if ((ch instanceof King) || (ch instanceof Golem) || (ch instanceof Yog.RottingFist))
|
||||
dist /= 2;
|
||||
|
||||
if (dist == 0 || ch instanceof Yog || ch instanceof RotLasher || ch instanceof RotHeart) return;
|
||||
if (dist == 0 || ch.properties().contains(Char.Property.IMMOVABLE)) return;
|
||||
|
||||
if (Actor.findChar(trajectory.path.get(dist)) != null){
|
||||
dist--;
|
||||
|
||||
Reference in New Issue
Block a user