public static class AttackEvent.CriticalHit extends AttackEvent
AttackEvent.CriticalHit, AttackEvent.Damage, AttackEvent.Recoil, AttackEvent.Stab, AttackEvent.TypeEffectiveness, AttackEvent.Use
Modifier and Type | Field and Description |
---|---|
double |
critMultiplier
The multiplier for damage.
|
target, user
battleController
Constructor and Description |
---|
CriticalHit(BattleController battleController,
PixelmonWrapper user,
PixelmonWrapper target,
double critMultiplier) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCrit()
Returns
true if this attack will receive a STAB. |
void |
setCrit(boolean crit) |
getAttack, isSelf
getBattleController
public CriticalHit(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double critMultiplier)