Hiya, I made a "skill tab" for Mr.Mo's ABS, and copied the cast skill method so I could make the skills cast when you click the buttons:
The problem I have, is it still casts the skill on the enemy if they are dead. Does anyone know a condition I can put in here, to test if the enemy is dead, so that the skill wont cast?
Code:
class MrMo_ABS
def cast_skill_wyatt(skill_id)
key = skill_id
#p key
if STATE_EFFECTS
#for i in $game_party.actors[0].states
# return if STUN_EFFECT.include?(i) or PARALAYZE_EFFECT.include?(i) or MUTE_EFFECT.include?(i)
#end
id = @actor.skill_keys[key]
if RANGE_EXPLODE.has_key?(id)
return player_explode(id)
else
return player_skill(id)
end
end
end
end
The problem I have, is it still casts the skill on the enemy if they are dead. Does anyone know a condition I can put in here, to test if the enemy is dead, so that the skill wont cast?