SSTrihan

HorrorVale - All Allies fix

Sep 8th, 2024
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.21 KB | Source Code | 0 0
  1. #-------------------------------------------------------------------------------
  2. # Don't remove this header!
  3. #-------------------------------------------------------------------------------
  4. # All allies effect fix
  5. # by Trihan
  6. #
  7. # Version : 1.0
  8. #
  9. # This script is commissioned by Batworks Software.
  10. #-------------------------------------------------------------------------------
  11.  
  12. #-------------------------------------------------------------------------------
  13. # Version History
  14. #-------------------------------------------------------------------------------
  15. # 1.0 - Initial script.
  16. #-------------------------------------------------------------------------------
  17.  
  18. #-------------------------------------------------------------------------------
  19. # This script prevents "all allies" skills and items from applying to reserve
  20. # party members when used outside of battle.
  21. #-------------------------------------------------------------------------------
  22. class Scene_ItemBase < Scene_MenuBase
  23.   alias :tlb_allalliesfix_item_target_actors :item_target_actors
  24.   def item_target_actors
  25.     if item.for_all?
  26.       $game_party.battle_members
  27.     else
  28.       tlb_allalliesfix_item_target_actors
  29.     end
  30.   end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment