Echizen-ham / SRPGcore

Tactical battle system for RPGtkool MV
http://www.lemon-slice.net/index.html
MIT License
20 stars 14 forks source link

Turn end flag remains after erases a battler event. #6

Open ShoukangHong opened 2 years ago

ShoukangHong commented 2 years ago

Sometimes an alive battler event needs to be erased. (For example, in my battler prepare plugin I need to remove the battler). Simply use event.erase() will leave the auto-battle or turn end flag on the map. Therefore I think it's necessary to add a check in the Sprite_Character.prototype.updateCharacterFrame function. replace the second line with:

if ($gameSystem.isSRPGMode() == true && this._character.isEvent() == true && !this._character.isErased()) {
Echizen-ham commented 2 years ago

I see, I'll fix it. thank you!