I dug around some of his other plugins and found the code myself. If a mod sees this, please feel free to close this thread, thank you! 
Hello all. How would i do a scriptcall/conditional to check to see if damage being taken is MAGICAL?
I am currently using Yanfly's plugin to recreate his "Stagger" tips and tricks (linked at the bottom of the post), but from what I see, it only works on Physical damage taken.
The spoiler shows the code. How do i get it to work on BOTH physical AND magical damage?
<Custom React Effect>
if (this.isPhysical() && this.isHpEffect() && value > 0) {
target._staggerDmg = target._staggerDmg || 0;
var reduce = Math.ceil(value * 0.35);
value -= reduce;
target.addState(142);
target._staggerDmg += reduce;
}
</Custom React Effect>
if (this.isPhysical() && this.isHpEffect() && value > 0) {
target._staggerDmg = target._staggerDmg || 0;
var reduce = Math.ceil(value * 0.35);
value -= reduce;
target.addState(142);
target._staggerDmg += reduce;
}
</Custom React Effect>
Last edited by a moderator:

