Is there a way to change the subject as not the actor? This is because I want to create an auto cast skill whenever the turn ends. Somehow, when I use the troops, the damage is still given to me, instead to the enemy. Here's my code:
Code:
class Scene_Battle < Scene_Base alias milena_cast_skill_turn_end turn_end def turn_end milena_cast_skill_turn_end $game_troop.members.each do |player| milena_cast_skill(player) end end def milena_cast_skill(battler) last_subject = @subject @subject = battler action = Game_Action.new(battler) action.set_skill(8) battler.actions.unshift(action) use_item battler.actions.shift @subject = last_subject end end