Fixed Incinerate's message not knowing the name of the item it destroyed

This commit is contained in:
Maruno17
2022-01-02 21:22:09 +00:00
parent 2a34904baa
commit a6115faad6

View File

@@ -196,8 +196,9 @@ class Battle::Move::DestroyTargetBerryOrGem < Battle::Move
return if target.damageState.substitute || target.damageState.berryWeakened
return if !target.item || (!target.item.is_berry? &&
!(Settings::MECHANICS_GENERATION >= 6 && target.item.is_gem?))
item_name = target.itemName
target.pbRemoveItem
@battle.pbDisplay(_INTL("{1}'s {2} was incinerated!", target.pbThis, target.itemName))
@battle.pbDisplay(_INTL("{1}'s {2} was incinerated!", target.pbThis, item_name))
end
end