FINAL FIX FOR HARDCODED BUFFS ON GOD

This commit is contained in:
yuvlian
2026-05-01 13:54:15 +07:00
parent 137db60000
commit 80754bbfea
3 changed files with 17380 additions and 21369 deletions
+17362 -21345
View File
File diff suppressed because it is too large Load Diff
+2 -8
View File
@@ -191,12 +191,6 @@ async fn create_battle_info(
0 0
}; };
// NOTE: this still doesnt work sometimes.
// example case of it not working: sparxie in 1st slot and there's fugue with a higher break effect
// however, it does work if you have like Arlan and then there's no other lightning character
// tldr:
// - same element with diff slot and that diff slot has higher BE -> hardcode no work
// - 1st slot's element count = 1 even with lower break effect dance partner will go there
let len = battle_info.buff_list.len(); let len = battle_info.buff_list.len();
let mut has_replaced = false; let mut has_replaced = false;
let mut dahlia_buffs = Vec::new(); let mut dahlia_buffs = Vec::new();
@@ -204,7 +198,7 @@ async fn create_battle_info(
let is_last = i == len - 1; let is_last = i == len - 1;
if buff.id == 141202 || buff.id == 141403 { if buff.id == 141202 || buff.id == 141403 {
buff.owner_index = first_avatar_id; buff.owner_index = first_avatar_idx;
continue; continue;
} }
@@ -216,7 +210,7 @@ async fn create_battle_info(
&& first_avatar_attack_id != 0 && first_avatar_attack_id != 0
{ {
buff.id = first_avatar_attack_id; buff.id = first_avatar_attack_id;
buff.owner_index = first_avatar_id; buff.owner_index = first_avatar_idx;
has_replaced = true; has_replaced = true;
} }
+4 -4
View File
@@ -1,9 +1,9 @@
{ {
"lineups": { "lineups": {
"0": 1506, "0": 1003,
"1": 1505, "1": 1310,
"2": 1507, "2": 1321,
"3": 1409 "3": 1414
}, },
"position": { "position": {
"x": 422379, "x": 422379,