mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Merge branch 'dev' into ui-redesign
This commit is contained in:
@@ -162,6 +162,9 @@ class Battle
|
||||
if b.abilityActive?
|
||||
pri = Battle::AbilityEffects.triggerPriorityChange(b.ability, b, move, pri)
|
||||
end
|
||||
if b.itemActive?
|
||||
pri = Battle::ItemEffects.triggerPriorityChange(b.item, b, move, pri)
|
||||
end
|
||||
entry[5] = pri
|
||||
@choices[b.index][4] = pri
|
||||
end
|
||||
@@ -199,6 +202,9 @@ class Battle
|
||||
if entry[0].abilityActive?
|
||||
pri = Battle::AbilityEffects.triggerPriorityChange(entry[0].ability, entry[0], move, pri)
|
||||
end
|
||||
if entry[0].itemActive?
|
||||
pri = Battle::ItemEffects.triggerPriorityChange(entry[0].item, entry[0], move, pri)
|
||||
end
|
||||
needRearranging = true if pri != entry[5]
|
||||
entry[5] = pri
|
||||
choice[4] = pri
|
||||
|
||||
Reference in New Issue
Block a user