Commit b682f15c authored by salix5's avatar salix5

field::send_to()

parent 7f786b11
......@@ -2596,6 +2596,7 @@ int32 field::destroy(uint16 step, group * targets, card * target, uint8 battle)
add_process(PROCESSOR_OPERATION_REPLACE, 10, eset[i], targets, (ptr)target, 1);
return TRUE;
}
// PROCESSOR_DESTROY goes here
int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint32 reason, uint8 reason_player) {
switch (step) {
case 0: {
......@@ -2953,6 +2954,7 @@ int32 field::release(uint16 step, group * targets, effect * reason_effect, uint3
}
return TRUE;
}
// PROCESSOR_SENDTO_STEP goes here
int32 field::send_to(uint16 step, group * targets, card * target) {
uint8 playerid = (target->operation_param >> 16) & 0xff;
uint8 dest = (target->operation_param >> 8) & 0xff;
......@@ -2975,6 +2977,7 @@ int32 field::send_to(uint16 step, group * targets, card * target) {
}
return TRUE;
}
// PROCESSOR_SENDTO goes here
int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint32 reason, uint8 reason_player) {
struct exargs {
group* targets;
......@@ -3449,6 +3452,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
core.operated_set = targets->container;
returns.ivalue[0] = targets->container.size();
pduel->delete_group(targets);
adjust_all();
return TRUE;
}
}
......
......@@ -4767,6 +4767,7 @@ void field::adjust_instant() {
adjust_disable_check_list();
adjust_self_destroy_set();
}
// this includes adjust_instant()
void field::adjust_all() {
core.readjust_map.clear();
add_process(PROCESSOR_ADJUST, 0, 0, 0, 0, 0);
......
......@@ -502,7 +502,7 @@ EVENT_CHAIN_END =1026 --连锁串结束时
EVENT_CHAINING =1027 --效果发动时
EVENT_BECOME_TARGET =1028 --成为效果对象时
EVENT_DESTROYED =1029 --被破坏时
EVENT_ADJUST =1040 --调整(御前试合)
EVENT_ADJUST =1040 --adjust_all()调整後(御前试合)
EVENT_SUMMON_SUCCESS =1100 --通常召唤成功时
EVENT_FLIP_SUMMON_SUCCESS =1101 --翻转召唤成功时
EVENT_SPSUMMON_SUCCESS =1102 --特殊召唤成功时
......
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