Code:
if (b.isStateAffected(20)) { // if state 20
damage *= 1.5
if ($gameTroop.aliveMembers().length > 0){
}
else{
a.forceAction(286, BattleManager._action._targetIndex) // casts skill
}
}I tried a few variations;
$gameTroop.aliveMembers().length > 0) has it so it does not cast at all guess it checks and sees theres an enemy alive.
(b.isDeathStateAffected()), (b.hp<=0) neither work, it casts the skill on the next available target.
Any help?