Add this under the method "def pbFreeze(msg=nil)":
Code:
#=============================================================================
# Deaf
#=============================================================================
def deaf?
return pbHasStatus?(PBStatuses::DEAF)
end
def pbCanDeafen?(user,showMessages,move=nil)
return pbCanInflictStatus?(PBStatuses::DEAF,user,showMessages,move)
end
def pbCanDeafenSynchronize?(target)
return pbCanSynchronizeStatus?(PBStatuses::DEAF,target)
end
def pbDeafen(user=nil,msg=nil)
pbInflictStatus(PBStatuses::DEAF,0,msg,user)
end
Add this into "def pbInflictStatus(newStatus,newStatusCount=0,msg=nil,user=nil)" under
"msg = _INTL("{1} was frozen solid!",pbThis) if !msg || msg==""":
Code:
when PBStatuses::DEAF
#@battle.pbCommonAnimation("Deaf",self) # Uncomment this line if you got an animation for your status
msg = _INTL("{1} was deafened! It may be unable to hear commands!",pbThis) if !msg || msg==""
Add this into "def pbCanSynchronizeStatus?(newStatus,target)" under "hasImmuneType |= pbHasType?(:ELECTRIC)"
Code:
when PBStatuses::DEAF
hasImmuneType |= pbHasType?(:STEEL)
In "def pbCanInflictStatus?(newStatus,user,showMessages,move=nil,ignoreStatus=false)" under "when PBStatuses::FROZEN; msg = _INTL("{1}'s {2} prevents freezing!",pbThis,abilityName)" add this line:
Code:
when PBStatuses::DEAF; msg = _INTL("{1}'s {2} prevents deafening!",pbThis,abilityName)