so i need some kind of method to know when someone attacked mimikyu so i can trigger its ability and
so it doesnt do any damage to the mimikyu.
this is what i currently have.
# Disguise
if isConst?(user.species,PBSpecies,:MIMIKYU) && user.hasWorkingAbility(:DISGUISE)
if (WHEN OPPONENT ATTACKED) && !user.isFainted? && user.form==0
(Don't do any damage.)
@effects[PBEffects::Disguise]=1 (Change form)
end
end
im not good at coding i use pokemon essentials to give me some kind of reason to learn.
so it can look rubbish.
so it doesnt do any damage to the mimikyu.
this is what i currently have.
# Disguise
if isConst?(user.species,PBSpecies,:MIMIKYU) && user.hasWorkingAbility(:DISGUISE)
if (WHEN OPPONENT ATTACKED) && !user.isFainted? && user.form==0
(Don't do any damage.)
@effects[PBEffects::Disguise]=1 (Change form)
end
end
im not good at coding i use pokemon essentials to give me some kind of reason to learn.
so it can look rubbish.