mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed pbOnStepTaken being called every frame if you open a menu immediately at the end of a step, fixed Sweet Veil being defined incorrectly
This commit is contained in:
@@ -852,6 +852,8 @@ class Game_Character
|
||||
def update
|
||||
@moved_last_frame = @moved_this_frame
|
||||
@stopped_last_frame = @stopped_this_frame
|
||||
@moved_this_frame = false
|
||||
@stopped_this_frame = false
|
||||
if !$game_temp.in_menu
|
||||
# Update command
|
||||
update_command
|
||||
@@ -921,7 +923,6 @@ class Game_Character
|
||||
@stopped_this_frame = true
|
||||
elsif !@moved_last_frame || @stopped_last_frame # Started a new step
|
||||
calculate_bush_depth
|
||||
@stopped_this_frame = false
|
||||
end
|
||||
# Increment animation counter
|
||||
@anime_count += 1 if @walk_anime || @step_anime
|
||||
@@ -931,8 +932,6 @@ class Game_Character
|
||||
def update_stop
|
||||
@anime_count += 1 if @step_anime
|
||||
@stop_count += 1 if !@starting && !lock?
|
||||
@moved_this_frame = false
|
||||
@stopped_this_frame = false
|
||||
end
|
||||
|
||||
def update_pattern
|
||||
|
||||
@@ -200,7 +200,7 @@ BattleHandlers::StatusImmunityAllyAbility.add(:FLOWERVEIL,
|
||||
}
|
||||
)
|
||||
|
||||
BattleHandlers::StatusImmunityAbility.add(:SWEETVEIL,
|
||||
BattleHandlers::StatusImmunityAllyAbility.add(:SWEETVEIL,
|
||||
proc { |ability,battler,status|
|
||||
next true if status == :SLEEP
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user