Skip to content

Commit

Permalink
dt14
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluorohydride committed Jan 27, 2012
1 parent 8ad8c5d commit 2cbec0a
Show file tree
Hide file tree
Showing 68 changed files with 1,824 additions and 97 deletions.
4 changes: 2 additions & 2 deletions ocgcore/card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ int32 card::is_summonable(effect* peffect) {
int32 card::is_can_be_summoned(uint8 playerid, uint8 ignore_count, effect* peffect) {
if(!is_summonable())
return FALSE;
if(!ignore_count && !is_affected_by_effect(EFFECT_EXTRA_SUMMON_COUNT)
if(!ignore_count && (pduel->game_field->core.extra_summon[playerid] || !is_affected_by_effect(EFFECT_EXTRA_SUMMON_COUNT))
&& pduel->game_field->core.summon_count[playerid] >= pduel->game_field->get_summon_count_limit(playerid))
return FALSE;
pduel->game_field->save_lp_cost();
Expand Down Expand Up @@ -1611,7 +1611,7 @@ int32 card::is_setable_mzone(uint8 playerid, uint8 ignore_count, effect* peffect
return FALSE;
if(is_affected_by_effect(EFFECT_CANNOT_MSET))
return FALSE;
if(!ignore_count && !is_affected_by_effect(EFFECT_EXTRA_SET_COUNT)
if(!ignore_count && (pduel->game_field->core.extra_summon[playerid] || !is_affected_by_effect(EFFECT_EXTRA_SET_COUNT))
&& pduel->game_field->core.summon_count[playerid] >= pduel->game_field->get_summon_count_limit(playerid))
return FALSE;
pduel->game_field->save_lp_cost();
Expand Down
2 changes: 1 addition & 1 deletion ocgcore/field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ void field::ritual_release(card_set* material) {
release(&rel, core.reason_effect, REASON_RITUAL + REASON_EFFECT + REASON_MATERIAL, core.reason_player);
send_to(&rem, core.reason_effect, REASON_RITUAL + REASON_EFFECT + REASON_MATERIAL, core.reason_player, PLAYER_NONE, LOCATION_REMOVED, 0, POS_FACEUP);
}
void field::get_exceed_material(card* scard, card_set* material) {
void field::get_xyz_material(card* scard, card_set* material) {
card* pcard = 0;
int32 playerid = scard->current.controler;
for(int i = 0; i < 5; ++i) {
Expand Down
3 changes: 2 additions & 1 deletion ocgcore/field.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ struct processor {
uint8 attack_cancelable;
int32 battle_damage[2];
int32 summon_count[2];
uint8 extra_summon[2];
int32 spe_effect[2];
int32 duel_options;
uint32 copy_reset;
Expand Down Expand Up @@ -309,7 +310,7 @@ class field {
int32 get_draw_count(uint8 playerid);
void get_ritual_material(uint8 playerid, card_set* material);
void ritual_release(card_set* material);
void get_exceed_material(card* scard, card_set* material);
void get_xyz_material(card* scard, card_set* material);
void get_overlay_group(uint8 self, uint8 s, uint8 o, card_set* pset);
int32 get_overlay_count(uint8 self, uint8 s, uint8 o);
void update_disable_check_list(effect* peffect);
Expand Down
2 changes: 1 addition & 1 deletion ocgcore/libduel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ int32 scriptlib::duel_get_xyz_material(lua_State *L) {
card* scard = *(card**) lua_touserdata(L, 1);
duel* pduel = scard->pduel;
group* pgroup = pduel->new_group();
pduel->game_field->get_exceed_material(scard, &pgroup->container);
pduel->game_field->get_xyz_material(scard, &pgroup->container);
interpreter::group2value(L, pgroup);
return 1;
}
Expand Down
20 changes: 10 additions & 10 deletions ocgcore/operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,12 +1027,12 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
core.temp_var[0] = 0;
if(!ignore_count) {
returns.ivalue[0] = FALSE;
effect* pextra = target->is_affected_by_effect(EFFECT_EXTRA_SUMMON_COUNT);
effect* pextra = core.extra_summon[sumplayer] ? 0 : target->is_affected_by_effect(EFFECT_EXTRA_SUMMON_COUNT);
if(pextra) {
core.temp_var[0] = (ptr)pextra;
if(core.summon_count[sumplayer] < get_summon_count_limit(sumplayer))
add_process(PROCESSOR_SELECT_YESNO, 0, 0, 0, sumplayer, 91);
else
// if(core.summon_count[sumplayer] < get_summon_count_limit(sumplayer))
// add_process(PROCESSOR_SELECT_YESNO, 0, 0, 0, sumplayer, 91);
// else
returns.ivalue[0] = TRUE;
}
} else
Expand All @@ -1043,6 +1043,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
if(!returns.ivalue[0])
core.summon_count[sumplayer]++;
else if(core.temp_var[0]) {
core.extra_summon[sumplayer] = TRUE;
effect* pextra = (effect*)core.temp_var[0];
pextra->get_value(target);
}
Expand Down Expand Up @@ -1384,12 +1385,12 @@ int32 field::mset(uint16 step, uint8 setplayer, card * target, effect * proc, ui
case 5: {
if(!ignore_count) {
returns.ivalue[0] = FALSE;
effect* pextra = target->is_affected_by_effect(EFFECT_EXTRA_SET_COUNT);
effect* pextra = core.extra_summon[setplayer]? 0: target->is_affected_by_effect(EFFECT_EXTRA_SET_COUNT);
if(pextra) {
core.temp_var[0] = (ptr)pextra;
if(core.summon_count[setplayer] < get_summon_count_limit(setplayer))
add_process(PROCESSOR_SELECT_YESNO, 0, 0, 0, setplayer, 91);
else
// if(core.summon_count[setplayer] < get_summon_count_limit(setplayer))
// add_process(PROCESSOR_SELECT_YESNO, 0, 0, 0, setplayer, 91);
// else
returns.ivalue[0] = TRUE;
}
} else
Expand All @@ -1400,13 +1401,12 @@ int32 field::mset(uint16 step, uint8 setplayer, card * target, effect * proc, ui
if(!returns.ivalue[0])
core.summon_count[setplayer]++;
else if(core.temp_var[0]) {
core.extra_summon[setplayer] = TRUE;
effect* pextra = (effect*)core.temp_var[0];
pextra->get_value(target);
}
target->enable_field_effect(FALSE);
move_to_field(target, setplayer, setplayer, LOCATION_MZONE, POS_FACEDOWN_DEFENCE);
if(!ignore_count)
core.summon_count[setplayer]++;
return FALSE;
}
case 7: {
Expand Down
4 changes: 2 additions & 2 deletions ocgcore/processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3319,13 +3319,13 @@ int32 field::process_turn(uint16 step, uint8 turn_player) {
core.spsummoned_cards_pt[p].clear();
core.flipsummoned_cards_pt[p].clear();
core.attack_state[p] = 0;
core.summon_count[p] = 0;
core.extra_summon[p] = 0;
}
for(auto rit = effects.rechargeable.begin(); rit != effects.rechargeable.end(); ++rit)
if(!((*rit)->flag & EFFECT_FLAG_NO_TURN_RESET))
(*rit)->recharge();
infos.turn_id++;
core.summon_count[0] = 0;
core.summon_count[1] = 0;
infos.turn_player = turn_player;
pduel->write_buffer8(MSG_NEW_TURN);
pduel->write_buffer8(turn_player);
Expand Down
2 changes: 1 addition & 1 deletion script/c10979723.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function c10979723.excon(e)
return Duel.IsExistingMatchingCard(c10979723.exfilter,c:GetControler(),LOCATION_ONFIELD,0,1,nil)
end
function c10979723.splimit(e,se,sp,st,spos,tgp)
if bit.band(spos,POS_FACEDOWN) then return true end
if bit.band(spos,POS_FACEDOWN)~=0 then return true end
return not Duel.IsExistingMatchingCard(c10979723.exfilter,tgp,LOCATION_ONFIELD,0,1,nil)
end
function c10979723.descon(e)
Expand Down
8 changes: 0 additions & 8 deletions script/c13455953.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,10 @@ function c13455953.sumop(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetCondition(c13455953.escon)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x42))
e1:SetValue(c13455953.esop)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1)
end
function c13455953.escon(e)
return Duel.GetFlagEffect(Duel.GetTurnPlayer(),13455953)==0
end
function c13455953.esop(e,c)
Duel.RegisterFlagEffect(c:GetControler(),13455953,RESET_PHASE+PHASE_END,0,1)
end
function c13455953.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local pos=c:GetPreviousPosition()
Expand Down
83 changes: 83 additions & 0 deletions script/c15574615.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
--異次元ジェット・アイアン号
function c15574615.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c15574615.spcon)
e1:SetOperation(c15574615.spop)
c:RegisterEffect(e1)
--atk
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(15574615,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(c15574615.cost)
e2:SetTarget(c15574615.target)
e2:SetOperation(c15574615.operation)
c:RegisterEffect(e2)
end
function c15574615.spfilter(c,code)
return c:IsFaceup() and c:IsCode(code) and c:IsAbleToGraveAsCost()
end
function c15574615.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE,0)~=0
and Duel.IsExistingMatchingCard(c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,80208158)
and Duel.IsExistingMatchingCard(c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,16796157)
and Duel.IsExistingMatchingCard(c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,43791861)
and Duel.IsExistingMatchingCard(c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,79185500)
end
function c15574615.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,80208158)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=Duel.SelectMatchingCard(tp,c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,16796157)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g3=Duel.SelectMatchingCard(tp,c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,43791861)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g4=Duel.SelectMatchingCard(tp,c15574615.spfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,79185500)
g1:Merge(g2)
g1:Merge(g3)
g1:Merge(g4)
Duel.SendtoGrave(g1,REASON_COST)
end
function c15574615.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleaseable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c15574615.spfilter2(c,e,tp,code)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c15574615.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>=3
and Duel.IsExistingTarget(c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp,80208158)
and Duel.IsExistingTarget(c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp,16796157)
and Duel.IsExistingTarget(c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp,43791861)
and Duel.IsExistingTarget(c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp,79185500) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g1=Duel.SelectTarget(tp,c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,80208158)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g2=Duel.SelectTarget(tp,c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,16796157)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g3=Duel.SelectTarget(tp,c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,43791861)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g4=Duel.SelectTarget(tp,c15574615.spfilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,79185500)
g1:Merge(g2)
g1:Merge(g3)
g1:Merge(g4)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g1,4,0,0)
end
function c15574615.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if g:GetCount()>ft then return end
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
33 changes: 33 additions & 0 deletions script/c16796157.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
--野獣戦士ピューマン
function c16796157.initial_effect(c)
--salvage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16796157,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c16796157.thcost)
e1:SetTarget(c16796157.thtg)
e1:SetOperation(c16796157.thop)
c:RegisterEffect(e1)
end
function c16796157.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleaseable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c16796157.filter(c)
return c:IsCode(80208158) and c:IsAbleToHand() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end
function c16796157.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16796157.filter,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE+LOCATION_DECK)
end
function c16796157.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOHAND)
local g=Duel.SelectMatchingCard(tp,c16796157.filter,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
28 changes: 28 additions & 0 deletions script/c16906241.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
--セイクリッド・レスカ
function c16906241.initial_effect(c)
--summon success
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(16906241,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetTarget(c16906241.sptg)
e2:SetOperation(c16906241.spop)
c:RegisterEffect(e2)
end
function c16906241.filter(c,e,tp)
return c:IsSetCard(0x53) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c16906241.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c16906241.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c16906241.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c16906241.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
end
end
11 changes: 11 additions & 0 deletions script/c17129783.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--セイクリッド・レオニス
function c17129783.initial_effect(c)
--extra summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x53))
c:RegisterEffect(e1)
end
85 changes: 85 additions & 0 deletions script/c17241370.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
--リチュア・ナタリア
function c17241370.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--summon,flip
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetOperation(c17241370.retreg)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_FLIP)
c:RegisterEffect(e3)
--to deck
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(17241370,1))
e4:SetCategory(CATEGORY_TODECK)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_SUMMON_SUCCESS)
e4:SetTarget(c17241370.tdtg)
e4:SetOperation(c17241370.tdop)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EVENT_FLIP)
c:RegisterEffect(e5)
end
function c17241370.filter(c)
return c:IsSetCard(0x3a) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end
function c17241370.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c17241370.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c17241370.filter,tp,LOCATION_GRAVE,0,1,nil) end
local g=Duel.SelectTarget(tp,c17241370.filter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
end
function c17241370.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)
end
end
function c17241370.retreg(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--to hand
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e1:SetDescription(aux.Stringid(17241370,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_REPEAT)
e1:SetCountLimit(1)
e1:SetReset(RESET_EVENT+0x1ee0000+RESET_PHASE+PHASE_END)
e1:SetCondition(c17241370.retcon)
e1:SetTarget(c17241370.rettg)
e1:SetOperation(c17241370.retop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
c:RegisterEffect(e2)
end
function c17241370.retcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsHasEffect(EFFECT_SPIRIT_DONOT_RETURN) then return false end
if e:IsHasType(EFFECT_TYPE_TRIGGER_F) then
return not c:IsHasEffect(EFFECT_SPIRIT_MAYNOT_RETURN)
else return c:IsHasEffect(EFFECT_SPIRIT_MAYNOT_RETURN) end
end
function c17241370.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
end
function c17241370.retop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
Duel.SendtoHand(c,nil,REASON_EFFECT)
end
end
Loading

0 comments on commit 2cbec0a

Please sign in to comment.