Commit 9eadec11 authored by salix5's avatar salix5

fix コード・ジェネレーター

Add str2: sent to grave from the field
Now the hint will show which one is sent from the field.
It can be a problem when 2 コード・ジェネレーター are sent to grave
simultaneously.
parent 9f41ed91
...@@ -35,8 +35,15 @@ end ...@@ -35,8 +35,15 @@ end
function c30114823.tdcon(e,tp,eg,ep,ev,re,r,rp) function c30114823.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
e:SetLabel(0) e:SetLabel(0)
if c:IsPreviousLocation(LOCATION_ONFIELD) then e:SetLabel(1) end if c:IsLocation(LOCATION_GRAVE) and c:IsPreviousLocation(LOCATION_ONFIELD+LOCATION_HAND) and r==REASON_LINK and c:GetReasonCard():IsSetCard(0x101) then
return c:IsLocation(LOCATION_GRAVE) and c:IsPreviousLocation(LOCATION_ONFIELD+LOCATION_HAND) and r==REASON_LINK and c:GetReasonCard():IsSetCard(0x101) if c:IsPreviousLocation(LOCATION_ONFIELD) then
e:SetLabel(1)
Duel.Hint(HINT_OPSELECTED,tp,aux.Stringid(30114823,1))
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(30114823,1))
Duel.HintSelection(Group.FromCards(c))
end
return true
end
end end
function c30114823.tdfilter(c,chk) function c30114823.tdfilter(c,chk)
return c:IsRace(RACE_CYBERSE) and c:IsAttackBelow(1200) and (c:IsAbleToGrave() or (chk==1 and c:IsAbleToHand())) return c:IsRace(RACE_CYBERSE) and c:IsAttackBelow(1200) and (c:IsAbleToGrave() or (chk==1 and c:IsAbleToHand()))
......
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