Class CRESCERE_PROTEGAT

java.lang.Object
net.pottercraft.ollivanders2.spell.O2Spell
net.pottercraft.ollivanders2.spell.CRESCERE_PROTEGAT

public final class CRESCERE_PROTEGAT extends O2Spell
Grows a Stationary Spell's radius. Only the player who created the Stationary Spell can change its radius.
  • Constructor Details

    • CRESCERE_PROTEGAT

      public CRESCERE_PROTEGAT(Ollivanders2 plugin)
      Default constructor for use in generating spell text. Do not use to cast the spell.
      Parameters:
      plugin - the Ollivanders2 plugin
    • CRESCERE_PROTEGAT

      public CRESCERE_PROTEGAT(@NotNull @NotNull Ollivanders2 plugin, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Double rightWand)
      Constructor.
      Parameters:
      plugin - a callback to the MC plugin
      player - the player who cast this spell
      rightWand - which wand the player was using
  • Method Details

    • doCheckEffect

      protected void doCheckEffect()
      Look for a stationary spell at the projectile's location and increase its radius.

      1. Target spell must have been cast by this caster. 2. Target spell cannot be higher difficulty level than this spell. 3. Target spell cannot be on the spell blocked list (ex. floo network, vanishing cabinets)

      O2StationarySpell

      Specified by:
      doCheckEffect in class O2Spell