Commit 00c7c85c authored by edo9300's avatar edo9300

Support for both mr4 and mr3 field

parent d2193e30
...@@ -153,6 +153,7 @@ void field::reload_field_info() { ...@@ -153,6 +153,7 @@ void field::reload_field_info() {
pduel->write_buffer8(chit->triggering_sequence); pduel->write_buffer8(chit->triggering_sequence);
pduel->write_buffer32(peffect->description); pduel->write_buffer32(peffect->description);
} }
pduel->write_buffer8(core.duel_rule - 1);
} }
// The core of moving cards, and Debug.AddCard() will call this function directly. // The core of moving cards, and Debug.AddCard() will call this function directly.
// check Fusion/S/X monster redirection by the rule, set fieldid_r // check Fusion/S/X monster redirection by the rule, set fieldid_r
......
...@@ -340,6 +340,7 @@ extern "C" DECL_DLLEXPORT int32 query_field_info(ptr pduel, byte* buf) { ...@@ -340,6 +340,7 @@ extern "C" DECL_DLLEXPORT int32 query_field_info(ptr pduel, byte* buf) {
*((int*)(buf)) = peffect->description; *((int*)(buf)) = peffect->description;
buf += 4; buf += 4;
} }
*buf++ = ptduel->game_field->core.duel_rule;
return 0; return 0;
} }
extern "C" DECL_DLLEXPORT void set_responsei(ptr pduel, int32 value) { extern "C" DECL_DLLEXPORT void set_responsei(ptr pduel, int32 value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment