Commit 5520043d authored by Chen Bill's avatar Chen Bill Committed by GitHub

fix: change token type (#558)

parent 1120fa52
......@@ -614,6 +614,8 @@ uint32 card::get_type() {
temp.type = type;
}
temp.type = 0xffffffff;
if (data.type & TYPE_TOKEN)
type |= TYPE_TOKEN;
return type;
}
uint32 card::get_fusion_type() {
......
......@@ -1412,10 +1412,7 @@ int32 field::equip(uint16 step, uint8 equip_player, card * equip_card, card * ta
peffect->owner = equip_card;
peffect->handler = equip_card;
peffect->type = EFFECT_TYPE_SINGLE;
if (equip_card_type & TYPE_TOKEN) {
peffect->code = EFFECT_CHANGE_TYPE;
peffect->value = TYPE_EQUIP + TYPE_SPELL + TYPE_TOKEN;
} else if (equip_card_type & TYPE_TRAP) {
if (equip_card_type & TYPE_TRAP) {
peffect->code = EFFECT_ADD_TYPE;
peffect->value = TYPE_EQUIP;
} else {
......
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