1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-10 13:07:17 +00:00

make <2MV not generate smoke if other player is hidden

This commit is contained in:
Alula 2021-06-27 03:43:11 +02:00
parent ba582882cc
commit 5ce0e1d67d
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -1284,6 +1284,7 @@ impl TextScriptVM {
} }
} }
if partner.cond.alive() && !partner.cond.hidden() {
let mut npc = NPC::create(4, &state.npc_table); let mut npc = NPC::create(4, &state.npc_table);
npc.cond.set_alive(true); npc.cond.set_alive(true);
npc.x = partner.x; npc.x = partner.x;
@ -1293,6 +1294,7 @@ impl TextScriptVM {
let _ = game_scene.npc_list.spawn(0x100, npc.clone()); let _ = game_scene.npc_list.spawn(0x100, npc.clone());
let _ = game_scene.npc_list.spawn(0x100, npc.clone()); let _ = game_scene.npc_list.spawn(0x100, npc.clone());
let _ = game_scene.npc_list.spawn(0x100, npc); let _ = game_scene.npc_list.spawn(0x100, npc);
}
exec_state = TextScriptExecutionState::Running(event, cursor.position() as u32); exec_state = TextScriptExecutionState::Running(event, cursor.position() as u32);
} }