Commit a70d8ba4 authored by salix5's avatar salix5

edit

parent dab9cf6b
......@@ -1800,11 +1800,14 @@ int32 card::is_equipable(card* pcard) {
return TRUE;
return FALSE;
}
// check EFFECT_UNSUMMONABLE_CARD
int32 card::is_summonable() {
if(!(data.type & TYPE_MONSTER))
return FALSE;
return !is_affected_by_effect(EFFECT_UNSUMMONABLE_CARD);
}
// check if this can be summoned/sp_summoned by procedure peffect
// check the condition of peffect
int32 card::is_summonable(effect* peffect) {
effect* oreason = pduel->game_field->core.reason_effect;
uint8 op = pduel->game_field->core.reason_player;
......@@ -1989,6 +1992,8 @@ int32 card::is_can_be_flip_summoned(uint8 playerid) {
pduel->game_field->restore_lp_cost();
return TRUE;
}
// check if this can be sp_summoned by EFFECT_SPSUMMON_PROC
// call filter_spsummon_procedure()
int32 card::is_special_summonable(uint8 playerid, uint32 summon_type) {
if(!(data.type & TYPE_MONSTER))
return FALSE;
......
......@@ -401,6 +401,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EFFECT_UNSUMMONABLE_CARD 336
#define EFFECT_DISABLE_CHAIN_FIELD 337
#define EFFECT_DISCARD_COST_CHANGE 338
#define EFFECT_HAND_SYNCHRO 339
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
......
......@@ -2035,6 +2035,7 @@ int32 field::is_player_can_sset(uint8 playerid, card * pcard) {
}
return TRUE;
}
// check player-effect EFFECT_CANNOT_SPECIAL_SUMMON without target
int32 field::is_player_can_spsummon(uint8 playerid) {
effect_set eset;
filter_player_effect(playerid, EFFECT_CANNOT_SPECIAL_SUMMON, &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