mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Fixed error when applying Sea of Fire's damage
This commit is contained in:
@@ -132,11 +132,11 @@ class Battle
|
||||
#=============================================================================
|
||||
# End Of Round Sea of Fire damage (Fire Pledge + Grass Pledge combination)
|
||||
#=============================================================================
|
||||
def pbEORSeaOfFireDamage
|
||||
def pbEORSeaOfFireDamage(priority)
|
||||
2.times do |side|
|
||||
next if sides[side].effects[PBEffects::SeaOfFire] == 0
|
||||
@battle.pbCommonAnimation("SeaOfFire") if side == 0
|
||||
@battle.pbCommonAnimation("SeaOfFireOpp") if side == 1
|
||||
pbCommonAnimation("SeaOfFire") if side == 0
|
||||
pbCommonAnimation("SeaOfFireOpp") if side == 1
|
||||
priority.each do |battler|
|
||||
next if battler.opposes?(side)
|
||||
next if !battler.takesIndirectDamage? || battler.pbHasType?(:FIRE)
|
||||
@@ -606,7 +606,7 @@ class Battle
|
||||
# Wish
|
||||
pbEORWishHealing
|
||||
# Sea of Fire damage (Fire Pledge + Grass Pledge combination)
|
||||
pbEORSeaOfFireDamage
|
||||
pbEORSeaOfFireDamage(priority)
|
||||
# Status-curing effects/abilities and HP-healing items
|
||||
priority.each do |battler|
|
||||
pbEORTerrainHealing(battler)
|
||||
|
||||
Reference in New Issue
Block a user