Commit 33c6efb1 authored by DailyShana's avatar DailyShana

xmaterial effect for puzzle mode

parent afb4a624
...@@ -59,6 +59,11 @@ int32 scriptlib::debug_add_card(lua_State *L) { ...@@ -59,6 +59,11 @@ int32 scriptlib::debug_add_card(lua_State *L) {
pcard->current.controler = PLAYER_NONE; pcard->current.controler = PLAYER_NONE;
pcard->current.location = LOCATION_OVERLAY; pcard->current.location = LOCATION_OVERLAY;
pcard->current.sequence = fcard->xyz_materials.size() - 1; pcard->current.sequence = fcard->xyz_materials.size() - 1;
for(auto eit = pcard->xmaterial_effect.begin(); eit != pcard->xmaterial_effect.end(); ++eit) {
effect* peffect = eit->second;
if(peffect->type & EFFECT_TYPE_FIELD)
pduel->game_field->add_effect(peffect);
}
interpreter::card2value(L, pcard); interpreter::card2value(L, pcard);
return 1; return 1;
} }
......
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