Hi guys,
I found a visual bug in Yanfly Skill Restrictions.
Whenever a battle ends, cooldowns are reset properly. However, they're still visible in skill menu.
Please take a look at the screenshot below.
I think I need to fix it somewhere here, but the reset in def on_battle_start looks same as in def on_battle_end - there seems to be nothing wrong here. I can't figure out what to do here.
May anyone help me? This is just a visual bug, but I bet this can be quite confusing for players.
I found a visual bug in Yanfly Skill Restrictions.
Whenever a battle ends, cooldowns are reset properly. However, they're still visible in skill menu.
Please take a look at the screenshot below.I think I need to fix it somewhere here, but the reset in def on_battle_start looks same as in def on_battle_end - there seems to be nothing wrong here. I can't figure out what to do here.
Code:
#--------------------------------------------------------------------------
# alias method: on_battle_start
#--------------------------------------------------------------------------
alias game_battler_on_battle_start_srs on_battle_start
def on_battle_start
game_battler_on_battle_start_srs
reset_cooldowns
reset_times_used
end
#--------------------------------------------------------------------------
# alias method: on_battle_end
#--------------------------------------------------------------------------
alias game_battler_on_battle_end_srs on_battle_end
def on_battle_end
game_battler_on_battle_end_srs
reset_cooldowns
reset_times_used
end
May anyone help me? This is just a visual bug, but I bet this can be quite confusing for players.
Thanks for giving me the hint.