示例#1
0
        protected void apply_staff(int battler2Id)
        {
            Game_Unit target = Global.game_map.units[battler2Id];

            if (Mode == Staff_Modes.Heal)
            {
                Global.game_map.units[Battler_1_Id].actor.heal_support_gain(target.actor.id);
                target.actor.heal_support_gain(Global.game_map.units[Battler_1_Id].actor.id);
            }

#if DEBUG
            if (this.weapon1.Repair())
            {
                throw new Exception();
            }
#endif
            target.staff_effect(this.weapon1, -1);
        }