ImmolateSkill

public class ImmolateSkill extends MagicWeaponSkill implements ConditionalSkill

Immolate (CONDITIONAL) - Fireballs deal bonus damage to badly wounded enemies. Tier 3 unlock.

Power budget: the standard conditional band, the same execute window as Finishing Flourish - a 1.75x hit at level 50 below 30% health (E = 0.267 * 0.75 = 0.20).

Constructors

Link copied to clipboard
public void ImmolateSkill()

Properties

Link copied to clipboard
public final static String SKILL_ID

Inherited properties

Link copied to clipboard
protected String bonusName
Link copied to clipboard
protected final SkillBonusType bonusType
Link copied to clipboard
Link copied to clipboard
protected String description
Link copied to clipboard
protected boolean enabled
Link copied to clipboard
public final static double MAX_DEFENSIVE_REDUCTION
Hard cap on how much any single defensive skill may reduce incoming damage.
Link copied to clipboard
protected int requiredLevel
Link copied to clipboard
protected final String skillId
Link copied to clipboard
protected final SkillType skillType
Link copied to clipboard
protected int unlockTier

Functions

Link copied to clipboard
public boolean conditionMet(Player player, Object context)
Checks if the skill's condition is currently met.
Link copied to clipboard
public double getBonusValue(int skillLevel)
Gets the numeric value of the bonus at a given skill level.
Link copied to clipboard
public double getConditionalBonus(int skillLevel)
Gets the bonus value when the condition is met.
Link copied to clipboard
public String getFormattedBonus(int skillLevel)
Gets a formatted string describing the bonus at a given level.
Link copied to clipboard
public List<String> getLoreDescription(int skillLevel)
Gets the lore description for the skill menu display.

Inherited functions

Link copied to clipboard
public boolean affectsDamage()
Returns whether this skill affects damage when used offensively.
Link copied to clipboard
public void applyBonus(Player player, int skillLevel)
Applies this bonus to a player based on their skill level.
Link copied to clipboard
protected String applyFormattedBonusTemplate(Map<String, String> replacements)
Applies placeholder replacements to the formatted bonus template from config.
Link copied to clipboard
protected List<String> applyLoreTemplates(Map<String, String> replacements)
Applies placeholder replacements to lore templates from config.
Link copied to clipboard
protected static void beam(Location from, Location to, Particle particle)
A straight particle line, capped so long beams stay cheap.
Link copied to clipboard
public boolean canUnlock(int skillLevel)
Checks if this skill can be unlocked at the given level.
Link copied to clipboard
protected static Location chest(LivingEntity entity)
Link copied to clipboard
public static double clampDefensiveReduction(double reduction)
Clamps a defensive damage reduction into the safe [0, MAX_DEFENSIVE_REDUCTION] range.
Link copied to clipboard
protected void clearPlayer(UUID playerId)
Drops per-player combat state when the skill is deactivated.
Link copied to clipboard
public void endCooldown(Player player)
Link copied to clipboard
protected static List<LivingEntity> enemiesNear(Player player, Location center, double radius, LivingEntity exclude)
Elites a magic weapon may hit within a radius of a point, nearest first.
Link copied to clipboard
public String getBonusName()
Link copied to clipboard
Link copied to clipboard
public double getConditionalBonus(Player player, int skillLevel)
Player-aware variant for skills whose payout depends on the player's state and not just the skill level.
Link copied to clipboard
Link copied to clipboard
public long getCooldownSeconds(int skillLevel)
Link copied to clipboard
public String getDescription()
Link copied to clipboard
public static int getLevelForTier(int tier)
Gets the required level for a given unlock tier.
Link copied to clipboard
public int getProcCount(Player player)
Gets the proc count for a player.
Link copied to clipboard
public long getRemainingCooldown(Player player)
Link copied to clipboard
public int getRequiredLevel()
Link copied to clipboard
protected double getScaledCooldown(int skillLevel)
Returns the configured cooldown at a specific skill level.
protected double getScaledCooldown(Player player)
Returns the configured cooldown at the player's current skill level.
Link copied to clipboard
protected double getScaledProcChance(Player player)
Returns the configured proc chance at the player's current skill level.
Link copied to clipboard
protected double getScaledValue(int skillLevel)
Returns the configured linear bonus at a specific skill level.
protected double getScaledValue(Player player)
Returns the configured linear bonus at the player's current level.
Link copied to clipboard
public String getSkillId()
Link copied to clipboard
Link copied to clipboard
Returns the test strategy for verifying this skill in automated testing.
Link copied to clipboard
public int getUnlockTier()
Link copied to clipboard
public void incrementProcCount(Player player)
Increments the proc count for a player.
Link copied to clipboard
public boolean isActive(Player player)
Checks if this skill is currently active for a player.
Link copied to clipboard
public boolean isEnabled()
Link copied to clipboard
public boolean isOnCooldown(Player player)
Link copied to clipboard
public boolean meetsLevelRequirement(int skillLevel)
Checks if a player meets the level requirement for this bonus.
Link copied to clipboard
public void onActivate(Player player)
Called when a player activates (selects) this skill.
Link copied to clipboard
public void onConditionMet(Player player, Object context)
Optional side-effect hook invoked exactly once when the condition succeeds for a hit.
Link copied to clipboard
public void onDeactivate(Player player)
Called when a player deactivates (deselects) this skill.
Link copied to clipboard
public void removeBonus(Player player)
Removes this bonus from a player.
Link copied to clipboard
public void resetAllProcCounts()
Resets all proc counts.
Link copied to clipboard
public void resetProcCount(Player player)
Resets the proc count for a player.
Link copied to clipboard
protected static double scaled(double base, double perLevel, int level)
The standard linear per-level scaling used by most skill payouts: base + level * perLevel.
protected static double scaled(double base, double perLevel, double cap, int level)
Capped variant of scaled: min(cap, base + level * perLevel).
Link copied to clipboard
public static void sendSkillActionBar(Player player, SkillBonus skill)
Sends a skill trigger action bar message to the player.
Link copied to clipboard
public static void sendStackingSkillActionBar(Player player, SkillBonus skill, int currentStacks, int maxStacks)
Sends a stacking skill action bar message showing current stack count.
Link copied to clipboard
public void setConfigFields(SkillBonusConfigFields configFields)
Sets the configuration fields for this skill.
Link copied to clipboard
public void setEnabled(boolean enabled)
Link copied to clipboard
public void shutdown()
Called on plugin shutdown.
Link copied to clipboard
protected static void sideDamage(Player player, LivingEntity target, double damage)
Skill damage on top of the weapon's hit.
Link copied to clipboard
protected int skillLevel(Player player)
Link copied to clipboard
public void startCooldown(Player player, int skillLevel)
Link copied to clipboard
protected static EliteMobDamagedByPlayerEvent strike(Object context, MagicStrike strike)
The hit in this context when it is the primary hit of the given staff or wand attack.
Link copied to clipboard
protected boolean wieldedBy(Player player)
True while the player holds this skill's weapon with the skill active and unlocked.