Commit 2555882b authored by wind2009's avatar wind2009

Merge branch 'patch-BrandedDragon' into 'master'

Fix 烙印竜アルビオン

See merge request !65
parents 7b50638a 1025148d
...@@ -11,7 +11,8 @@ function s.initial_effect(c) ...@@ -11,7 +11,8 @@ function s.initial_effect(c)
mat_operation_code_map={ mat_operation_code_map={
{ [LOCATION_REMOVED]=FusionSpell.FUSION_OPERATION_GRAVE }, { [LOCATION_REMOVED]=FusionSpell.FUSION_OPERATION_GRAVE },
{ [0xff]=FusionSpell.FUSION_OPERATION_BANISH } { [0xff]=FusionSpell.FUSION_OPERATION_BANISH }
} },
extra_target=s.extra_target
}) })
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
...@@ -54,7 +55,13 @@ end ...@@ -54,7 +55,13 @@ end
function s.fusfilter(c) function s.fusfilter(c)
return c:IsLevelBelow(8) and not c:IsCode(id) return c:IsLevelBelow(8) and not c:IsCode(id)
end end
function s.extra_target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
return true
end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_ONFIELD+LOCATION_HAND+LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function s.regop(e,tp,eg,ep,ev,re,r,rp) function s.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
......
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