Commit 06941fc2 authored by salix5's avatar salix5

Duel.CalculateDamage()

parent be7a0b88
......@@ -48,7 +48,7 @@ function c62878208.eqop(e,tp,eg,ep,ev,re,r,rp)
d=eqc
end
if a:IsAttackable() and not a:IsImmuneToEffect(e) and not d:IsImmuneToEffect(e) then
Duel.CalculateDamage(a,d)
Duel.CalculateDamage(a,d,true)
end
end
end
......@@ -88,7 +88,7 @@ function c88482761.atkop(e,tp,eg,ep,ev,re,r,rp)
if c1~=e:GetLabelObject() then c1,c2=c2,c1 end
if c1:IsControler(1-tp) and c1:IsPosition(POS_FACEUP_ATTACK) and not c1:IsImmuneToEffect(e)
and c2:IsControler(tp) then
Duel.CalculateDamage(c1,c2)
Duel.CalculateDamage(c1,c2,true)
end
end
end
......@@ -698,13 +698,13 @@ DUEL_PSEUDO_SHUFFLE =0x10 --不洗牌
DUEL_TAG_MODE =0x20 --双打PP
DUEL_SIMPLE_AI =0x40 --AI(用于残局)
--Activity counter
--global: 1-6 (binary: 6)
--global: 1-6 (binary: 5,6)
--custom: 1-5,7 (binary: 1-5)
ACTIVITY_SUMMON =1 --
ACTIVITY_NORMALSUMMON =2 --
ACTIVITY_SPSUMMON =3 --
ACTIVITY_FLIPSUMMON =4 --
ACTIVITY_ATTACK =5 --global: count of attack announce, custom: count of attack (including changing target, damage calculation)
ACTIVITY_ATTACK =5 --
ACTIVITY_BATTLE_PHASE =6 -- not available in custom counter
ACTIVITY_CHAIN =7 -- only available in custom counter
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
......
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