mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Plugins now recompile if any plugin name/version doesn't match one that was previously compiled, fixed Throat Chop's effect
This commit is contained in:
@@ -897,16 +897,12 @@ class Battle::Move::DisableTargetHealingMoves < Battle::Move
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Target cannot use sound-based moves for 2 more rounds. (Throat Chop)
|
||||
# Target cannot use sound-based moves for 2 rounds. (Throat Chop)
|
||||
#===============================================================================
|
||||
class Battle::Move::DisableTargetSoundMoves < Battle::Move
|
||||
def pbAdditionalEffect(user, target)
|
||||
return if target.fainted? || target.damageState.substitute
|
||||
if target.effects[PBEffects::ThroatChop] == 0
|
||||
@battle.pbDisplay(_INTL("The effects of {1} prevent {2} from using certain moves!",
|
||||
@name, target.pbThis(true)))
|
||||
end
|
||||
target.effects[PBEffects::ThroatChop] = 3
|
||||
target.effects[PBEffects::ThroatChop] = 2 if target.effects[PBEffects::ThroatChop] == 0
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user