Commit a25e8cf5 authored by salix5's avatar salix5

field::special_summon_rule()

parent 53ae1ef1
......@@ -2317,13 +2317,13 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
card_set cset;
for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit) {
if(!(*cit)->is_affected_by_effect(EFFECT_CANNOT_DISABLE_SPSUMMON)) {
raise_single_event(*cit, 0, EVENT_SPSUMMON, (*cit)->current.reason_effect, 0, (*cit)->current.reason_player, (*cit)->summon_player, 0);
raise_single_event(*cit, 0, EVENT_SPSUMMON, (*cit)->current.reason_effect, 0, (*cit)->current.summon_player, (*cit)->summon_player, 0);
cset.insert(*cit);
}
(*cit)->set_status(STATUS_SUMMONING, TRUE);
}
if(cset.size())
raise_event(&cset, EVENT_SPSUMMON, core.units.begin()->peffect, 0, sumplayer, PLAYER_NONE, 0);
raise_event(&cset, EVENT_SPSUMMON, core.units.begin()->peffect, 0, sumplayer, summon_player, 0);
process_single_event();
process_instant_event();
add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, 0x101, TRUE);
......
......@@ -86,7 +86,7 @@ RACE_WYRM =0x800000 --幻龙
REASON_DESTROY =0x1 --破坏
REASON_RELEASE =0x2 --解放
REASON_TEMPORARY =0x4 --暂时
REASON_MATERIAL =0x8 --作为融合/同调/超量等的素材
REASON_MATERIAL =0x8 --作为融合/同调/超量素材或用於儀式/升級召喚
REASON_SUMMON =0x10 --召唤
REASON_BATTLE =0x20 --战斗破坏
REASON_EFFECT =0x40 --效果
......@@ -101,10 +101,10 @@ REASON_DISCARD =0x4000 --丢弃
REASON_RDAMAGE =0x8000 --回復轉換後的傷害
REASON_RRECOVER =0x10000 --傷害轉換後的回復
REASON_RETURN =0x20000 --回收
REASON_FUSION =0x40000 --融合
REASON_SYNCHRO =0x80000 --同调
REASON_RITUAL =0x100000 --仪式
REASON_XYZ =0x200000 --超量
REASON_FUSION =0x40000 --用於融合召喚
REASON_SYNCHRO =0x80000 --用於同调召喚
REASON_RITUAL =0x100000 --用於仪式召喚
REASON_XYZ =0x200000 --用於超量召喚
REASON_REPLACE =0x1000000 --代替
REASON_DRAW =0x2000000 --抽卡
REASON_REDIRECT =0x4000000 --改变去向(大宇宙,带菌等)
......
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