Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Smack Down makes Ground moves work against fliers
- if (!opponent.isAirborne?(attacker.hasMoldBreaker) || @function==0x11C) && # Smack Down
- isConst?(atype,PBTypes,:GROUND)
- mod1=2 if isConst?(otype1,PBTypes,:FLYING)
- mod2=2 if isConst?(otype2,PBTypes,:FLYING)
- mod3=2 if isConst?(otype3,PBTypes,:FLYING)
- end
- # Smack Down makes Ground moves work against fliers
- if (!opponent.isAirborne?(attacker.hasMoldBreaker) || @function==0x11C) && # Smack Down
- isConst?(atype,PBTypes,:GROUND)
- mod1=2 if isConst?(otype1,PBTypes,:FLYING)
- mod2=2 if isConst?(otype2,PBTypes,:FLYING)
- mod3=2 if isConst?(otype3,PBTypes,:FLYING)
- end
- if @function==0x135 && !attacker.effects[PBEffects::Electrify] # Freeze-Dry
- mod1=4 if isConst?(otype1,PBTypes,:WATER)
- if isConst?(otype2,PBTypes,:WATER)
- mod2=(otype1==otype2) ? 2 : 4
- end
- if isConst?(otype3,PBTypes,:WATER)
- mod3=(otype1==otype3 || otype2==otype3) ? 2 : 4
- end
- end
- if @function==0x159 && !attacker.effects[PBEffects::Electrify] # Flytrap
- mod1=4 if isConst?(otype1,PBTypes,:BUG)
- if isConst?(otype2,PBTypes,:BUG)
- mod2=(otype1==otype2) ? 2 : 4
- end
- if isConst?(otype3,PBTypes,:BUG)
- mod3=(otype1==otype3 || otype2==otype3) ? 2 : 4
- end
- end
- return mod1*mod2*mod3
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement