Added Universe Protection lua and fixed Union Dragon
This commit is contained in:
@@ -6,11 +6,11 @@ function s.initial_effect(c)
|
||||
--fusion summon
|
||||
c:EnableReviveLimit()
|
||||
Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x25E),2)
|
||||
--tohand from Benghalances of the Samsaric Cycle
|
||||
--tohand
|
||||
local e1=Effect.CreateEffect(c)
|
||||
e1:SetDescription(aux.Stringid(id,0))
|
||||
e1:SetCategory(CATEGORY_DAMAGE)
|
||||
e1:SetType(EFFECT_TYPE_QUICK_O) --EFFECT_TYPE_QUICK_O EFFECT_TYPE_FIELD
|
||||
e1:SetType(EFFECT_TYPE_IGNITION)
|
||||
e1:SetCode(EVENT_FREE_CHAIN)
|
||||
e1:SetRange(LOCATION_MZONE)
|
||||
e1:SetCountLimit(1,id)
|
||||
@@ -29,11 +29,11 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
|
||||
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
|
||||
local g=Duel.SelectTarget(tp,s.thfilter,tp,0,LOCATION_MZONE,1,1,nil)
|
||||
local d=g:GetFirst():GetAttack()
|
||||
Duel.SetTargetPlayer(1-tp) --tp changed to 1-tp cuz of line 27
|
||||
Duel.SetTargetPlayer(1-tp)
|
||||
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,d)
|
||||
end
|
||||
function s.thop(e,tp,eg,ep,ev,re,r,rp)
|
||||
local tc=Duel.GetFirstTarget() --target card?
|
||||
local tc=Duel.GetFirstTarget()
|
||||
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
|
||||
if tc and tc:IsRelateToEffect(e) and Duel.Damage(p,tc:GetAttack(),REASON_EFFECT) then
|
||||
Duel.Destroy(tc, REASON_DESTROY)
|
||||
|
||||
Reference in New Issue
Block a user