Male
Seen 4 Weeks Ago
Posted May 31st, 2019
30 posts
3.5 Years
ok, I tried your method but it still doesnt work.
I make a little tweaks
just to activate the user own berry

but also does not work, this is what I have. still need help


 
class PokeBattle_Move_168 < PokeBattle_Move
  def pbEffectAfterHit(attacker,opponent,turneffects)
    if !attacker.hasWorkingAbility(:KLUTZ) &&
       attacker.effects[PBEffects::Embargo]==0
    else  attacker.pbConsumeItem(false,false) 
             attacker.pbActivateBerryEffect(item,false)
            @battle.pbDisplay(_INTL("{1} eat the berry instantly",attacker.pbThis,itemname))
    end
      # Symbiosis
    if attacker.item==0 &&
        attacker.pbPartner && attacker.pbPartner.hasWorkingAbility(:SYMBIOSIS)
      partner=attacker.pbPartner
      if partner.item>0 &&
          !@battle.pbIsUnlosableItem(partner,partner.item) &&
          !@battle.pbIsUnlosableItem(attacker,partner.item)
        @battle.pbDisplay(_INTL("{1}'s {2} let it share its {3} with {4}!",
            partner.pbThis,PBAbilities.getName(partner.ability),
            PBItems.getName(partner.item),attacker.pbThis(true)))
        attacker.item=partner.item
        partner.item=0
        partner.effects[PBEffects::Unburden]=true
        attacker.pbBerryCureCheck
      end
    end
  end
end