v2.2.0: fixed sacrificial fire working for allies and other 0 xp targets

This commit is contained in:
Evan Debenham
2023-09-24 10:01:44 -04:00
parent 1c3b420f2e
commit 62df7a24ce

View File

@@ -166,7 +166,7 @@ public class SacrificialFire extends Blob {
} else if (ch instanceof Swarm && ((Swarm) ch).EXP == 0){
//give 1 exp for child swarms, instead of 0
exp = 1;
} else {
} else if (((Mob) ch).EXP > 0) {
exp = 1 + ((Mob)ch).EXP;
}
exp *= Random.IntRange( 2, 3 );