<Custom Apply Effect>
target._bonusdef = origin.mdf * 1.5
target.def += target._bonusdef
</Custom Apply Effect>
<Custom Apply Effect>
if (target._bonusdef){
target._bonusdef = origin.mdf * 1.5
target.def += target._bonusdef
}
</Custom Apply Effect>
<Custom Remove Effect>
delete target._bonusdef;
</Custom Remove Effect>
www.yanfly.moe
I have no JS skill at all, so this might be a small fix or I might be completely off.
Thank you in advance, if you are able to assist.
target._bonusdef = origin.mdf * 1.5
target.def += target._bonusdef
</Custom Apply Effect>
<Custom Apply Effect>
if (target._bonusdef){
target._bonusdef = origin.mdf * 1.5
target.def += target._bonusdef
}
</Custom Apply Effect>
<Custom Remove Effect>
delete target._bonusdef;
</Custom Remove Effect>
Buffs & States Core (YEP) - Yanfly.moe Wiki
I have no JS skill at all, so this might be a small fix or I might be completely off.
Thank you in advance, if you are able to assist.