Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=thismove.priority
- if USENEWBATTLEMECHANICS
- p+=1 if user.hasWorkingAbility(:PRANKSTER) && thismove.pbIsStatus?
- p+=1 if user.hasWorkingAbility(:GALEWINGS) && isConst?(thismove.type,PBTypes,:FLYING)
- p+=3 if user.hasWorkingAbility(:TRIAGE) && thismove.isHealingMove? &&
- !isConst?(thismove.id,PBMoves,:AQUARING) &&
- !isConst?(thismove.id,PBMoves,:GRASSYTERRAIN) &&
- !isConst?(thismove.id,PBMoves,:INGRAIN) &&
- !isConst?(thismove.id,PBMoves,:LEECHSEED) &&
- !isConst?(thismove.id,PBMoves,:PAINSPLIT) &&
- !isConst?(thismove.id,PBMoves,:PRESENT) &&
- !isConst?(thismove.id,PBMoves,:POLLENPUFF)
- end
- if p>0 && thismove.target!=PBTargets::AllOpposing && thismove.target!=PBTargets::BothSides
- for i in 0...4; battler=@battle.battlers[i]
- if @battle.field.effects[PBEffects::PsychicTerrain]>0 && !user.isAirborne?
- PBDebug.log("Psychic Terrain prevented #{user.pbThis}'s priority move")
- @battle.pbDisplay(_INTL("The psychic terrain prevented the use of priority moves!"))
- return false
- elsif !user.hasMoldBreaker && pbIsOpposing?(i) && (battler.hasWorkingAbility(:QUEENLYMAJESTY) ||
- battler.hasWorkingAbility(:DAZZLING))
- thismove.pp -=1
- @battle.pbDisplay(_INTL("{1} cannot use {2}!",user.pbThis,PBMoves.getName(thismove)))
- return false
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement