I have been working on a project for a few months now.
I have no experience with JS at all but I have enough of
a background that I can parse through most of it,
However I have been struggling with this part for two days and getting no where.
The issue I have is with Yanfly's counter control
www.yanfly.moe
I have two skills that are only meant to answer an attack that is magical or physical
and that part works fine, however no matter what else I put in as the trigger condition it will always return true:
For clarity.... any time anyone is hit it will answer with the correct skill (either magic / physical) but it will ignore everything else I have put it no matter what that is ( even when I just straight up ordered it to return false it would still return true)
what am I doing wrong?
I have no experience with JS at all but I have enough of
a background that I can parse through most of it,
However I have been struggling with this part for two days and getting no where.
The issue I have is with Yanfly's counter control
Counter Control (YEP) - Yanfly.moe Wiki
I have two skills that are only meant to answer an attack that is magical or physical
and that part works fine, however no matter what else I put in as the trigger condition it will always return true:
Code:
<Custom Counter Condition>
if (this.isMagical() && a.hasSkill(210))
{
condition = true
} else {
condition = false;
}
</Custom Counter Condition>
<Counter Skills: 233>
Code:
<Custom Counter Condition>
if (this.isPhysical() && a.hasSkill(219))
{
condition = true
} else {
condition = false;
}
</Custom Counter Condition>
<Counter Skills: 234>
For clarity.... any time anyone is hit it will answer with the correct skill (either magic / physical) but it will ignore everything else I have put it no matter what that is ( even when I just straight up ordered it to return false it would still return true)
what am I doing wrong?
