Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------------------------------------
- # Don't remove this header!
- #-------------------------------------------------------------------------------
- # Immortal Action Enable
- # by Trihan
- #
- # Version : 1.0
- #
- # This script is commissioned by Batworks Software.
- #-------------------------------------------------------------------------------
- #
- # Plug and play - This simply fixes an oversight in Yanfly's Skill Cost Manager
- #
- #-------------------------------------------------------------------------------
- # Version History
- #-------------------------------------------------------------------------------
- # 1.0 - Initial script.
- #-------------------------------------------------------------------------------
- # Override for Yanfly's skill cost manager
- class Game_BattlerBase
- def skill_cost_payable?(skill)
- return false if skill_hp_cost(skill) > 0 && hp <= skill_hp_cost(skill)
- return false unless gold_cost_met?(skill)
- return false unless custom_cost_met?(skill)
- return game_battlerbase_skill_cost_payable_scm(skill)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement