예제 #1
0
        // Skills: Sacrifice
        public void UnitMenuSacrifice(Game_Unit unit, int targetId)
        {
            Global.game_map.remove_updated_move_range(unit.id);
            Global.game_map.clear_move_range();
            Global.game_map.range_start_timer = 0;

            Global.game_state.call_sacrifice(unit.id, targetId);
            Global.game_temp.menuing = false;
            close_unit_menu(true);

            unit.cantoing = false;
            // Lock in unit movement
            unit.moved();
            if (unit.has_attack_canto() && !unit.full_move())
            {
                unit.cantoing = true;
            }
        }