Yanfly Lunatic's damage display problem

Hey ! 


I have a trouble with making a pretty simple poison effect. In my game, I have an assassin who is able to equip poison. The equipped poison grant a passive state to the assassin, and this passive state do something in battle.


My problem is with one of these poison. The goal is to inflict 20% additionnal damages for each physical attack.


This is the code in the state notetag : 

Spoiler
<Custom Establish Effect>


// Check if the action deals HP healing and the target is alive.


if (this.isHpEffect() && target.result().hpDamage > 0 && target.isAlive() && this.isPhysical()) {


// Calculate 20% of the amount healed.


var dmg = -Math.abs(Math.ceil(target.result().hpDamage * 0.20));


// Inflics the damages


target.gainHp(dmg);


// Start the damage popup.


target.startDamagePopup();


// Clear the result.


target.clearResult();


// Check if the user is dead.


if (target.isDead()) {


// Perform a collapse.


target.performCollapse();


}


} 


</Custom Establish Effect>

Actually it seems to work, but I have one main problem : the damage display.


When this poison is equipped, and I attack, only the additionnal damages are displayed (but the base damages + the additionnal damages are dealed to the enemy).


How can I make it look like the display of a repeatable attack ?


Thanks by advance !
Do you have a default damage popup in your game? Does other skills do damage popup when you hit with them?


anyway, maybe you can try adding this line as the first line of your notetag?


target.startDamagePopup();


so that your notetag will look like

Code:
<Custom Establish Effect>
target.startDamagePopup(); 
// Check if the action deals HP healing and the target is alive.
// and so ooooooooon
Oh, it works ! Thanks ! 

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-lunatics-damage-display-problem.73290/