if target.hasWorkingAbility(:WEAKARMOR) && move.pbIsPhysical?(movetype)
if target.pbReduceStatWithCause(PBStats::DEFENSE,1,target,PBAbilities.getName(target.ability))
PBDebug.log("[Ability triggered] #{target.pbThis}'s Weak Armor (lower Defense)")
end
if target.pbIncreaseStatWithCause(PBStats::SPEED,1,target,PBAbilities.getName(target.ability))
PBDebug.log("[Ability triggered] #{target.pbThis}'s Weak Armor (raise Speed)")
end
end
# Find the code above, add the code below
if user.hasWorkingAbility(:NEWABILITY,true) && move.pbIsSpecial?(movetype) &&
target.pbCanPoison?(nil,false) && @battle.pbRandom(10)<3
PBDebug.log("[Ability triggered] #{user.pbThis}'s NEW ABILITY")
target.pbPoison(user,_INTL("{1}'s {2} poisoned {3}!",user.pbThis,
PBAbilities.getName(user.ability),target.pbThis(true)))
end