Commit a636ec88 authored by salix5's avatar salix5

Merge pull request #427 from nekrozar/patch-1

fix Deep-Eyes White Dragon
parents c0868b93 f53cec5a
...@@ -36,7 +36,7 @@ function c22804410.initial_effect(c) ...@@ -36,7 +36,7 @@ function c22804410.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c22804410.spfilter(c,tp) function c22804410.spfilter(c,tp)
return c:IsSetCard(0xdd) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousSetCard(0xdd) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and (c:IsReason(REASON_BATTLE) or c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp) and (c:IsReason(REASON_BATTLE) or c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp)
end end
function c22804410.spcon(e,tp,eg,ep,ev,re,r,rp) function c22804410.spcon(e,tp,eg,ep,ev,re,r,rp)
...@@ -44,7 +44,8 @@ function c22804410.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,8 @@ function c22804410.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c22804410.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c22804410.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_GRAVE,0,1,nil,RACE_DRAGON) end
local g=Duel.GetMatchingGroup(Card.IsRace,tp,LOCATION_GRAVE,0,nil,RACE_DRAGON) local g=Duel.GetMatchingGroup(Card.IsRace,tp,LOCATION_GRAVE,0,nil,RACE_DRAGON)
local dam=g:GetClassCount(Card.GetCode)*600 local dam=g:GetClassCount(Card.GetCode)*600
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
......
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