mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Fixed Incinerate's message not knowing the name of the item it destroyed
This commit is contained in:
@@ -196,8 +196,9 @@ class Battle::Move::DestroyTargetBerryOrGem < Battle::Move
|
|||||||
return if target.damageState.substitute || target.damageState.berryWeakened
|
return if target.damageState.substitute || target.damageState.berryWeakened
|
||||||
return if !target.item || (!target.item.is_berry? &&
|
return if !target.item || (!target.item.is_berry? &&
|
||||||
!(Settings::MECHANICS_GENERATION >= 6 && target.item.is_gem?))
|
!(Settings::MECHANICS_GENERATION >= 6 && target.item.is_gem?))
|
||||||
|
item_name = target.itemName
|
||||||
target.pbRemoveItem
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user