Commit 8e4452a5c8219457eec4feeaad90481a168262a9

Authored by Otowa Kotori
1 parent 01e5acce

Fix Cleansing Flames's tactical table

... ... @@ -102,7 +102,7 @@ newTalent{
102 102 local nb = 0
103 103 for eff_id, p in pairs(self.tmp) do
104 104 local e = self.tempeffect_def[eff_id]
105   - if e.type == "magical" and e.status == "detrimental" then nb = nb + 1 end
  105 + if (e.type == "magical" or e.type == "physical") and e.status == "detrimental" then nb = nb + 1 end
106 106 end
107 107 return nb
108 108 end,
... ... @@ -110,13 +110,7 @@ newTalent{
110 110 local nb = 0
111 111 for eff_id, p in pairs(aitarget.tmp) do
112 112 local e = self.tempeffect_def[eff_id]
113   - if e.type == "magical" and e.status == "beneficial" then nb = nb + 1 end
114   - end
115   - for tid, act in pairs(aitarget.sustain_talents) do
116   - if act then
117   - local talent = aitarget:getTalentFromId(tid)
118   - if talent.is_spell then nb = nb + 1 end
119   - end
  113 + if (e.type == "magical" or e.type == "physical") and e.status == "beneficial" then nb = nb + 1 end
120 114 end
121 115 return nb^0.5
122 116 end},
... ...