Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error with Regen Passive skills outside of combat on the map #9

@Kruize1

Description

@Kruize1

If you use a Passive Regen skill that heals HP/MP, you might be unaware that you will Regen while walking on the map.

This causes an error, because it's trying to pass text like "Harold regen 5 HP." to the battle log that doesn't exist.

To fix this in the plugin you'll need to do the following change. This will make it so the text is only generated while in combat:

//=============================================================================
// Display text in battle log
//=============================================================================
BattleManager.setupBattleLogMessage = function(text) {
    if ($gameParty.inBattle()) { // Only run this if in battle
        if (text) {
            this._logWindow.push('addText', text);
            this._drmLogMessage = true;
        }
    }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions