Class GlobalStatusBase
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
- Direct Known Subclasses:
AuraStatus
,EchoedVoiceStatus
,FairyLock
,Gravity
,IonDeluge
,MagicRoom
,OfRuinStatus
,RepeatDamage
,Sport
,Terrain
,TrickRoom
,Weather
,WonderRoom
A status that affects all Pokémon in battle.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, type
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyEffectAfterStatus
(GlobalStatusController globalStatusController) Triggers at the end of every turn, after the turn tick resets effects.void
applyRepeatedEffect
(GlobalStatusController globalStatusController) Triggers at the end of every turn.static boolean
Determines whether to ignore weather effects during the turn.boolean
Determines whether the global status is a terrain.boolean
Determines whether the global status is a weather condition.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Constructor Details
-
GlobalStatusBase
- Parameters:
type
- The status's type.
-
-
Method Details
-
applyRepeatedEffect
Triggers at the end of every turn.- Parameters:
globalStatusController
- The battle's global status controller.
-
applyEffectAfterStatus
Triggers at the end of every turn, after the turn tick resets effects.- Parameters:
globalStatusController
- The battle's global status controller.
-
isWeather
public boolean isWeather()Determines whether the global status is a weather condition.- Returns:
- Whether the global status is a weather condition.
-
isTerrain
public boolean isTerrain()Determines whether the global status is a terrain.- Returns:
- Whether the global status is a terrain.
-
ignoreWeather
Determines whether to ignore weather effects during the turn.- Parameters:
bc
- The battle's battle controller.- Returns:
- Whether to ignore weather.
-