forked from ProjectIgnis/CardScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproc_damage_fix.lua
More file actions
26 lines (25 loc) · 966 Bytes
/
Copy pathproc_damage_fix.lua
File metadata and controls
26 lines (25 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- Utilities for functions to handle damage change that don't stack with each other
function Duel.DoubleBattleDamage(ep)
if Duel.GetFlagEffect(ep,199004583)==0 then
--199004583 = 100000000 + id of Action Magic Full turn
local dam=Duel.GetBattleDamage(ep)
Duel.ChangeBattleDamage(ep,dam*2)
Duel.RegisterFlagEffect(ep,199004583,RESET_PHASE+PHASE_DAMAGE_CAL,0,0)
end
end
function Duel.DoublePiercingDamage(ep)
if Duel.GetFlagEffect(ep,155410871)==0 then
--155410871 = 100000000 + id of Blue eyes Chaos Max Dragon
local dam=Duel.GetBattleDamage(ep)
Duel.ChangeBattleDamage(ep,dam*2)
Duel.RegisterFlagEffect(ep,155410871,RESET_PHASE+PHASE_DAMAGE_CAL,0,0)
end
end
function Duel.HalfBattleDamage(ep)
if Duel.GetFlagEffect(ep,189448140)==0 then
--155410871 = 100000000 + id of Magician's Defense
local dam=Duel.GetBattleDamage(ep)
Duel.ChangeBattleDamage(ep,dam/2)
Duel.RegisterFlagEffect(ep,189448140,RESET_PHASE+PHASE_DAMAGE_CAL,0,0)
end
end