Why my stack in not stacking? This stay to 1 🙁
<Custom Apply Effect>
target._stackingPoison = target._stackingPoison || 0;
target._stackingPoison += 1;
</Custom Apply Effect>
<Custom Remove Effect>
target._stackingPoison = 0;
</Custom Remove Effect>
<Custom Regenerate Effect>
target._stackingPoison = target._stackingPoison || 0;
var stacks = Math.min(5, target._stackingPoison);
var damage = stacks * 100;
target.startAnimation(59);
target.gainHp(-damage);
target.startDamagePopup();
target.clearResult();
if (target.isDead()) {
target.performCollapse();
}
</Custom Regenerate Effect>
<Custom Apply Effect>
target._stackingPoison = target._stackingPoison || 0;
target._stackingPoison += 1;
</Custom Apply Effect>
<Custom Remove Effect>
target._stackingPoison = 0;
</Custom Remove Effect>
<Custom Regenerate Effect>
target._stackingPoison = target._stackingPoison || 0;
var stacks = Math.min(5, target._stackingPoison);
var damage = stacks * 100;
target.startAnimation(59);
target.gainHp(-damage);
target.startDamagePopup();
target.clearResult();
if (target.isDead()) {
target.performCollapse();
}
</Custom Regenerate Effect>