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)
|
# End Of Round Sea of Fire damage (Fire Pledge + Grass Pledge combination)
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
def pbEORSeaOfFireDamage
|
def pbEORSeaOfFireDamage(priority)
|
||||||
2.times do |side|
|
2.times do |side|
|
||||||
next if sides[side].effects[PBEffects::SeaOfFire] == 0
|
next if sides[side].effects[PBEffects::SeaOfFire] == 0
|
||||||
@battle.pbCommonAnimation("SeaOfFire") if side == 0
|
pbCommonAnimation("SeaOfFire") if side == 0
|
||||||
@battle.pbCommonAnimation("SeaOfFireOpp") if side == 1
|
pbCommonAnimation("SeaOfFireOpp") if side == 1
|
||||||
priority.each do |battler|
|
priority.each do |battler|
|
||||||
next if battler.opposes?(side)
|
next if battler.opposes?(side)
|
||||||
next if !battler.takesIndirectDamage? || battler.pbHasType?(:FIRE)
|
next if !battler.takesIndirectDamage? || battler.pbHasType?(:FIRE)
|
||||||
@@ -606,7 +606,7 @@ class Battle
|
|||||||
# Wish
|
# Wish
|
||||||
pbEORWishHealing
|
pbEORWishHealing
|
||||||
# Sea of Fire damage (Fire Pledge + Grass Pledge combination)
|
# Sea of Fire damage (Fire Pledge + Grass Pledge combination)
|
||||||
pbEORSeaOfFireDamage
|
pbEORSeaOfFireDamage(priority)
|
||||||
# Status-curing effects/abilities and HP-healing items
|
# Status-curing effects/abilities and HP-healing items
|
||||||
priority.each do |battler|
|
priority.each do |battler|
|
||||||
pbEORTerrainHealing(battler)
|
pbEORTerrainHealing(battler)
|
||||||
|
|||||||
Reference in New Issue
Block a user