Commit 00656ac9 authored by sidschingis's avatar sidschingis

update

remove unequip when equip spell becomes an overlay unit.
http://yugioh.wikia.com/wiki/Galaxy_Eyes_Full_Armor_Photon_Dragon
parent d891f429
...@@ -760,6 +760,8 @@ void card::xyz_overlay(card_set* materials) { ...@@ -760,6 +760,8 @@ void card::xyz_overlay(card_set* materials) {
pcard->reset(RESET_LEAVE + RESET_OVERLAY, RESET_EVENT); pcard->reset(RESET_LEAVE + RESET_OVERLAY, RESET_EVENT);
if(pcard->unique_code) if(pcard->unique_code)
pduel->game_field->remove_unique_card(pcard); pduel->game_field->remove_unique_card(pcard);
if(pcard->equiping_target)
pcard->unequip();
xyz_add(pcard, &des); xyz_add(pcard, &des);
} else { } else {
field::card_vector cv; field::card_vector cv;
...@@ -770,6 +772,8 @@ void card::xyz_overlay(card_set* materials) { ...@@ -770,6 +772,8 @@ void card::xyz_overlay(card_set* materials) {
(*cvit)->reset(RESET_LEAVE + RESET_OVERLAY, RESET_EVENT); (*cvit)->reset(RESET_LEAVE + RESET_OVERLAY, RESET_EVENT);
if((*cvit)->unique_code) if((*cvit)->unique_code)
pduel->game_field->remove_unique_card(*cvit); pduel->game_field->remove_unique_card(*cvit);
if((*cvit)->equiping_target)
(*cvit)->unequip();
xyz_add(*cvit, &des); xyz_add(*cvit, &des);
} }
} }
......
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