I'm trying to do an equivalent of persona's ailment boost abilities and I thought I could use the lukeffectrate part of this plugin like this:
but I get "user.isstateaffected(25) isn't a function", how do I check if the user is affected by a state?
maybe user.isstateaffected() doesn't work in game_action? I'm not an expert :/
Game_Action.prototype.lukEffectRate = function(target,stateId) {
var item = this.item();
var skill = this.item();
var a = this.subject();
var user = this.subject();
var subject = this.subject();
var b = target;
var s = $gameSwitches._data;
var v = $gameVariables._data;
var ailmentrate = eval(Yanfly.Param.BPCLukEffectRate); // I added this
if (user.isStateaffected(25)) {
ailmentrate *= 2
}
return ailmentrate;
};
but I get "user.isstateaffected(25) isn't a function", how do I check if the user is affected by a state?
maybe user.isstateaffected() doesn't work in game_action? I'm not an expert :/