YEP Party Limit Gauge - Heal Hp/MP Damage

Hi,


i don't know why but Heal Hp/MP Damage formulas in YEP Party Limit Gauge Plugin can't use 'user' when the other formulas can use both: 'user' and 'target'


is a bug or 'user' is not supported for this 2 formulas?


I got an error when i add 'user' into this formulas:


TypeError: Cannot read property 'hp' of undefined
    at Game_Party.eval (eval at <anonymous> (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_X_PartyLimitGauge.js:1135:22), <anonymous>:1:43)
    at Game_Party.Game_Unit.processPartyLimitGaugeEval (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_X_PartyLimitGauge.js:1135:17)
    at Game_Action.executeHpDamage (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_X_PartyLimitGauge.js:938:28)
    at Game_Action.executeHpDamage (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_EnhancedTP.js:3140:44)
    at Game_Action.executeHpDamage (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_X_BattleStatistics.js:306:47)
    at Game_Action.executeDamage (file:///C:/Users/Me/Desktop/Game/js/rpg_objects.js:1739:14)
    at Game_Action.executeDamage (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_BuffsStatesCore.js:1463:42)
    at Game_Action.executeDamage (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_SkillCore.js:994:44)
    at Game_Action.apply (file:///C:/Users/Me/Desktop/Game/js/rpg_objects.js:1657:18)
    at Game_Action.apply (file:///C:/Users/Me/Desktop/Game/js/plugins/YEP_BattleEngineCore.js:2888:34)


My Heal Hp Damage formula:


Math.floor(-5 * damage / target.mhp * user.hp).clamp(3, 5)


The plugin can be found there:


http://yanfly.moe/2016/02/06/yep-67-party-limit-gauge/
Why don't you post this in Yanfly's thread?
Yeah, there is a little bug in the plugin. That's why it doesn't work.
Why don't you post this in Yanfly's thread?

I do, but i don't get respond.
I do, but i don't get respond.



No worries.


I postet too, and Yanfly said that bug will be fixed.
Ok, cool. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yep-party-limit-gauge-heal-hp-mp-damage.57175/