Commit 6b0f6f61 authored by Tachibana's avatar Tachibana

EMERGENCY

parent a25a9b29
Pipeline #15347 passed with stages
in 31 minutes and 17 seconds
No preview for this file type
......@@ -24,7 +24,6 @@ function c12892007.initial_effect(c)
c:RegisterEffect(e3)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCondition(cm.damcon)
e5:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE)
e5:SetValue(aux.ChangeBattleDamage(1,DOUBLE_DAMAGE))
c:RegisterEffect(e5)
......
......@@ -68,7 +68,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.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)
Duel.Hint(11,0,aux.Stringid(g:GetFirst():GetCode(),4))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(g:GetFirst():GetCode(),4))
end
end
function cm.chkfilter(c,tp)
......@@ -102,7 +102,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
local tc=g:GetFirst()
Duel.Hint(11,0,aux.Stringid(tc:GetCode(),4))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(tc:GetCode(),4))
local tep=tc:GetControler()
local PCe=tama.getTargetTable(tc,"deck_equip")
if PCe and cm.canActivate(tc,PCe,eg,ep,ev,re,r,rp) then
......
......@@ -38,7 +38,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoDeck(g,nil,2,REASON_COST)
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsOnField() and re:GetHandler():IsFaceup() and (re:IsActiveType(TYPE_MONSTER)
local rc=re:GetHandler()
return rc:IsOnField() and rc:IsControler(1-tp) and rc:IsFaceup() and (re:IsActiveType(TYPE_MONSTER)
or (re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and not re:IsHasType(EFFECT_TYPE_ACTIVATE)))
end
function cm.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -38,6 +38,6 @@ end
function cm.efilter1(e,te)
local ec=e:GetHandler():GetEquipTarget()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and not(g==nil or {g:IsContains(e:GetHandler():GetEquipTarget())})[1]
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and not(g~=nil and g:IsContains(ec))
--return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and not te:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
end
......@@ -44,6 +44,6 @@ end
function cm.efilter1(e,te)
local ec=e:GetHandler():GetEquipTarget()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and (g and g:IsContains(ec))
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and (g~=nil and g:IsContains(ec))
--return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and not te:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
end
......@@ -108,7 +108,7 @@ function cm.pctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
local ct1=0
--for power capsule
if eg then ct1=eg:GetCount() end
if eg~=nil then ct1=eg:FilterCount(Card.IsPreviousLocation,nil,LOCATION_MZONE) end
local t1=ct1>0
local op=0
local m1={}
......@@ -134,5 +134,5 @@ function cm.pcop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.Draw(p,d,REASON_EFFECT)
end
function cm.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(m,7))
Duel.Hint(HINT_MUSIC,0,aux.Stringid(m,7))
end
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