MV Deal double dmg to enemy affected by state (Yanflys Plugins Active)

Hello,
I have a problem creating a special damage formula by using Yanflys Plugins:

Goal:
I want to deal double (or value x) damage to an enemy, affected by a state.
It should double all incoming damage to an enemy, if the "enemy type" is "ghost". I made a <Passive State: 61> which resembles this enemy type "Ghost".

Context:
I use RPG Maker MV and use some of yanflys plugins. The Skill is inspired by the witcher and uses at the moment the exact names from the game.

Situation:
Player Character has Skill: 93 - Trap: Yrden. It should resemble making a trap a sphere of influence.
Effects: Add State: Trap: Yrden to player


State 79 - Trap: Yrden (Player is affected by this)
Note:
<Custom React Effect>
if (user && target && target.result().isHit()) {
user.addState(80);
}
</Custom React Effect>


State 80 - Yrden affected (Enemy is affected by this)
---Until here, everything seems working---
Note
<Custom Damage Eval>
if (b.isStateAffected(61)) {
value *= 2.0;
}
</Custom Damage Eval>


But if I attack the ghost, the damge stays the same as if I attack without the "Yrden affection", it deals no double dmg.

Thanks in advance 🙂
if (user && target && target.result().isHit()) {
as a note, the check here is pointless. those sets of notetags trigger as a result of an action and always have a user and a target, and then react effects specifically run after hit calculations and require the skill to have hit the target in the first place to have run.
You might want to change it to see if the skill is a damaging skill. as right now, all that you set up in both states would apply to heals and other skills that battlers might cast on their allies or themselves

<Custom Damage Eval>
which plugin is that notetag from?
which plugin is that notetag from?
YEP_DamageCore
Why don't you just simply put the <Custom React Effect> into state 61? Any damage dealt to the unit with this state will be doubled
Code:
<Custom React Effect>
if (this.isHpEffect() && value > 0){
value *= 2;
}
</Custom React Effect>
YEP_DamageCore
it isnt. the only js notetag in that plugin is <damage formula>

Original thread: https://forums.rpgmakerweb.com/threads/deal-double-dmg-to-enemy-affected-by-state-yanflys-plugins-active.180489/