Commit d096b929 authored by DailyShana's avatar DailyShana

perform EFFECT_MATERIAL_CHECK for c:SetMaterial(nil)

parent 5628d7d9
...@@ -2217,9 +2217,8 @@ int32 card::get_counter(uint16 countertype) { ...@@ -2217,9 +2217,8 @@ int32 card::get_counter(uint16 countertype) {
void card::set_material(card_set* materials) { void card::set_material(card_set* materials) {
if(!materials) { if(!materials) {
material_cards.clear(); material_cards.clear();
return; } else
} material_cards = *materials;
material_cards = *materials;
for(auto& pcard : material_cards) for(auto& pcard : material_cards)
pcard->current.reason_card = this; pcard->current.reason_card = this;
effect_set eset; effect_set eset;
......
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