Commit d2b6b112 authored by VanillaSalt's avatar VanillaSalt

fix

parent 27e191e4
...@@ -2544,14 +2544,14 @@ int32 scriptlib::duel_set_target_card(lua_State *L) { ...@@ -2544,14 +2544,14 @@ int32 scriptlib::duel_set_target_card(lua_State *L) {
targets->container.insert(pcard); targets->container.insert(pcard);
else else
targets->container = pgroup->container; targets->container = pgroup->container;
} else if(pduel->game_field->core.current_chain.size()) { } else {
if(pcard) { if(pcard) {
targets->container.insert(pcard); targets->container.insert(pcard);
pcard->create_relation(peffect); pcard->create_relation(*ch);
} else { } else {
targets->container.insert(pgroup->container.begin(), pgroup->container.end()); targets->container.insert(pgroup->container.begin(), pgroup->container.end());
for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit) for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit)
(*cit)->create_relation(peffect); (*cit)->create_relation(*ch);
} }
if(peffect->is_flag(EFFECT_FLAG_CARD_TARGET)) { if(peffect->is_flag(EFFECT_FLAG_CARD_TARGET)) {
if(pcard) { if(pcard) {
......
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