PinkCatDragon
The 17 year old programer. Now byte off
- 388
- Posts
- 15
- Years
- 5cm meters from somthink with an IDE
- Seen Nov 11, 2017
Look at my prevous post nowWhat do you mean by third typing system? Sounds interesting.
and for trick or treat
Code:
class PokeBattle_Move_134 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
if opponent.effects[PBEffects::Substitute]>0
@battle.pbDisplay(_INTL("But it failed!"))
return -1
end
if isConst?(opponent.ability(true),PBAbilities,:MULTITYPE)
@battle.pbDisplay(_INTL("But it failed!"))
return -1
end
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
opponent.type3=getConst(PBTypes,:GHOST) #override the 3rd type
typename=PBTypes.getName(getConst(PBTypes,:GHOST))
@battle.pbDisplay(_INTL("{1} transformed into the {2} type!",opponent.pbThis,typename))
return 0
end
end
Last edited: