Advertisement
Trihan

HorrorVale - Immortal Action Enable

Jul 28th, 2023 (edited)
1,542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.09 KB | Source Code | 0 0
  1. #-------------------------------------------------------------------------------
  2. # Don't remove this header!
  3. #-------------------------------------------------------------------------------
  4. # Immortal Action Enable
  5. # by Trihan
  6. #
  7. # Version : 1.0
  8. #
  9. # This script is commissioned by Batworks Software.
  10. #-------------------------------------------------------------------------------
  11. #
  12. # Plug and play - This simply fixes an oversight in Yanfly's Skill Cost Manager
  13. #
  14. #-------------------------------------------------------------------------------
  15. # Version History
  16. #-------------------------------------------------------------------------------
  17. # 1.0 - Initial script.
  18. #-------------------------------------------------------------------------------
  19.  
  20. # Override for Yanfly's skill cost manager
  21. class Game_BattlerBase
  22.   def skill_cost_payable?(skill)
  23.     return false if skill_hp_cost(skill) > 0 && hp <= skill_hp_cost(skill)
  24.     return false unless gold_cost_met?(skill)
  25.     return false unless custom_cost_met?(skill)
  26.     return game_battlerbase_skill_cost_payable_scm(skill)
  27.   end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement