--SKILL: Frenesia della Battaglia --Script by XGlitchy30 local cid,id=GetID() function cid.initial_effect(c) aux.AddOrigSkillType(c) --ED Skill Properties aux.EDSkillProperties(c) --Battle Frenesy local SKILL=Effect.CreateEffect(c) SKILL:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) SKILL:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE) SKILL:SetRange(LOCATION_EXTRA) SKILL:SetCode(EVENT_PHASE+PHASE_BATTLE_START) SKILL:SetCountLimit(1) SKILL:SetCondition(cid.skillcon_skill) SKILL:SetOperation(cid.skillop) c:RegisterEffect(SKILL) end --filters --Battle Frenesy function cid.skillcon_skill(e,tp,eg,ep,ev,re,r,rp) return aux.skillcon(e) and Duel.GetFlagEffect(tp,id)<=0 and tp==Duel.GetTurnPlayer() and Duel.IsExistingMatchingCard(aux.AND(Card.IsFaceup,Card.IsAttackPos),tp,LOCATION_MZONE,0,1,nil) end function cid.skillop(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsExistingMatchingCard(aux.AND(Card.IsFaceup,Card.IsAttackPos),tp,LOCATION_MZONE,0,1,nil) or not Duel.SelectYesNo(tp,aux.Stringid(id,0)) then return end Duel.Hint(HINT_CARD,1-tp,id) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) local g=Duel.SelectMatchingCard(tp,aux.AND(Card.IsFaceup,Card.IsAttackPos),tp,LOCATION_MZONE,0,1,1,nil) local tc=g:GetFirst() if tc and tc:IsFaceup() then Duel.HintSelection(g) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE) e1:SetCode(EFFECT_EXTRA_ATTACK_MONSTER) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) local e2=Effect.CreateEffect(e:GetHandler()) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE) e2:SetCode(EVENT_PHASE+PHASE_BATTLE) e2:SetCountLimit(1) e2:SetLabelObject(tc) e2:SetCondition(cid.rmcon) e2:SetOperation(cid.rmop) e2:SetReset(RESET_PHASE+PHASE_BATTLE) tc:RegisterEffect(e2) end Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) end function cid.rmcon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() if not tc or not tc:IsOnField() or not tc:IsFaceup() then return false end return tc:GetAttackAnnouncedCount()<2 end function cid.rmop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() if not tc or not tc:IsOnField() or not tc:IsFaceup() then return end Duel.Remove(tc,POS_FACEUP,REASON_RULE) e:Reset() end