You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Actually, in the Attack() method, the baseDamage is being used on the damagingAttack boolean, which is also used on secondaryDamage attack. This means that when you're trying to swap targets HP into MP, the damagingAttack boolean is set to true since baseDamage > 0, but an if (secondaryDamage < 0 && damagingAttack) sets the secondaryDamage to 0, ignoring the swap.
Also, this lead us to another problem. Since the damagingAttack depends on baseDamage, it will be always false when trying to damage only enemies MP. In that case, if the CalculateFormula brings the secondaryDamage below 0, the if will not work and the damaging MP will turn into healing MP.
Version Encountered
b7
To Reproduce
Steps to reproduce the behavior 1:
Create an combat targetted spell
Set HP Damage to 5
Set MP Damage to -5
Test and the swap will not work
Steps to reproduce the behavior 2:
5. Set only the MP Damage to 1 and HP damage to 0
6. Modify the Formula to consider target defense against MP Damage
7. Create a NPC with too much defense
8. Test and the MP damaging will become MP healing
Expected behavior
Swap will not work at behavior 1 and MP Damage will become healing at behavior 2
The text was updated successfully, but these errors were encountered:
Describe the bug
Actually, in the Attack() method, the baseDamage is being used on the damagingAttack boolean, which is also used on secondaryDamage attack. This means that when you're trying to swap targets HP into MP, the damagingAttack boolean is set to true since baseDamage > 0, but an if (secondaryDamage < 0 && damagingAttack) sets the secondaryDamage to 0, ignoring the swap.
Also, this lead us to another problem. Since the damagingAttack depends on baseDamage, it will be always false when trying to damage only enemies MP. In that case, if the CalculateFormula brings the secondaryDamage below 0, the if will not work and the damaging MP will turn into healing MP.
Version Encountered
b7
To Reproduce
Steps to reproduce the behavior 1:
Steps to reproduce the behavior 2:
5. Set only the MP Damage to 1 and HP damage to 0
6. Modify the Formula to consider target defense against MP Damage
7. Create a NPC with too much defense
8. Test and the MP damaging will become MP healing
Expected behavior
Swap will not work at behavior 1 and MP Damage will become healing at behavior 2
The text was updated successfully, but these errors were encountered: