From 278a32ea98c118479563256e9975163637d0a13e Mon Sep 17 00:00:00 2001 From: amizing25 Date: Sun, 12 May 2024 18:32:30 +0700 Subject: [PATCH] action value for as or smth idk --- gameserver/src/net/handlers/battle.rs | 28 +++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/gameserver/src/net/handlers/battle.rs b/gameserver/src/net/handlers/battle.rs index 25a0b34..0fcb1bc 100644 --- a/gameserver/src/net/handlers/battle.rs +++ b/gameserver/src/net/handlers/battle.rs @@ -124,12 +124,14 @@ pub async fn on_start_cocoon_stage_cs_req( // Apocalyptic Shadow if player.battle_config.battle_type == BattleType::AS { - let mut battle_target = Cnngaoldopi::default(); - battle_target.fdfcmhbhnmc.push(BattleTarget { - id: 10002, - progress: 0, - ..Default::default() - }); + let battle_target = Cnngaoldopi { + fdfcmhbhnmc: vec![BattleTarget { + id: 90005, + progress: 0, + ..Default::default() + }], + }; + battle_info.jelkfckaonl.insert(1, battle_target); } // SU @@ -298,12 +300,14 @@ pub async fn on_scene_cast_skill_cs_req( // Apocalyptic Shadow if player.battle_config.battle_type == BattleType::AS { - let mut battle_target = Cnngaoldopi::default(); - battle_target.fdfcmhbhnmc.push(BattleTarget { - id: 10002, - progress: 0, - ..Default::default() - }); + let battle_target = Cnngaoldopi { + fdfcmhbhnmc: vec![BattleTarget { + id: 90005, + progress: 0, + ..Default::default() + }], + }; + battle_info.jelkfckaonl.insert(1, battle_target); } // SU