mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Added SKIP_TITLE_SCREEN Setting, added const for type icon size, fixed some battle bugs and inconsistencies
This commit is contained in:
@@ -309,8 +309,8 @@ class Battle::Battler
|
||||
return true
|
||||
end
|
||||
|
||||
def pbSleep(msg = nil)
|
||||
pbInflictStatus(:SLEEP, pbSleepDuration, msg)
|
||||
def pbSleep(user = nil, msg = nil)
|
||||
pbInflictStatus(:SLEEP, pbSleepDuration, msg, user)
|
||||
end
|
||||
|
||||
def pbSleepSelf(msg = nil, duration = -1)
|
||||
@@ -391,8 +391,8 @@ class Battle::Battler
|
||||
return pbCanInflictStatus?(:FROZEN, user, showMessages, move)
|
||||
end
|
||||
|
||||
def pbFreeze(msg = nil)
|
||||
pbInflictStatus(:FROZEN, 0, msg)
|
||||
def pbFreeze(user = nil, msg = nil)
|
||||
pbInflictStatus(:FROZEN, 0, msg, user)
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
|
||||
@@ -449,6 +449,7 @@ class Battle::Battler
|
||||
end
|
||||
|
||||
def pbMoveTypeWeakeningBerry(berry_type, move_type, mults)
|
||||
return false if !canConsumeBerry?
|
||||
return if move_type != berry_type
|
||||
return if !Effectiveness.super_effective?(@damageState.typeMod) && move_type != :NORMAL
|
||||
mults[:final_damage_multiplier] /= 2
|
||||
|
||||
Reference in New Issue
Block a user