public class OnDamagedMechanic extends Aura implements ITargetedEntitySkill
Aura.AuraTracker
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelDamage |
protected double |
damageMult |
protected double |
damageSub |
protected boolean |
modDamage |
protected String |
onAttackSkillName |
protected Optional<Skill> |
onDamagedSkill |
auraName, barTimer, barTimerColor, barTimerDisplay, barTimerStyle, cancelOnChangeWorld, cancelOnDeath, cancelOnGiveDamage, cancelOnQuit, cancelOnSkillCast, cancelOnTakeDamage, cancelOnTeleport, charges, doEndSkillOnTerminate, duration, interval, maxStacks, mergeAll, mergeSameCaster, onEndSkill, onEndSkillName, onStartSkill, onStartSkillName, onTickSkill, onTickSkillName, overwriteAll, overwriteCaster, refreshDuration, showBarTimer
clock, config, forceSync, line, originOverride, targetIsOrigin
ASYNC_SAFE, chance, conditions, conditionsTarget, conditionsTrigger, cooldown, cooldowns, cooldownTimer, delay, healthMod, power, powerScale, powerSplitBetweenTargets, repeat, repeatInterval, sourceIsOrigin, target_creative, targeter, trigger, uuid
Constructor and Description |
---|
OnDamagedMechanic(String skill,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
protected double |
calculateDamage(AbstractEntity entity,
org.bukkit.event.entity.EntityDamageByEntityEvent event) |
boolean |
castAtEntity(SkillMetadata data,
AbstractEntity target) |
execute, executeNoTargetSkill, executeSkills, executeSkills, executeTargetedEntitySkill, executeTargetedLocationSkill, getClock, getConfigLine, getRunAsync, getTimerInterval, init, isAsyncSafe, isUsableFromCaster, isUsableFromSkill, resetClock, setAsyncSafe, setTimerInterval, tickClock, usable, usable, usable
checkHealth, checkSkillTrigger, checkSkillTrigger, evaluateTargets, getCooldown, getPlugin, onCooldown, parseSkillCondition, parseSkillTargeter, parseSkillTrigger, rollChance, setCooldown, setTargetsCreativePlayers, targetsCreativePlayers
protected String onAttackSkillName
protected boolean cancelDamage
protected boolean modDamage
protected double damageSub
protected double damageMult
public OnDamagedMechanic(String skill, MythicLineConfig mlc)
public boolean castAtEntity(SkillMetadata data, AbstractEntity target)
castAtEntity
in interface ITargetedEntitySkill
protected double calculateDamage(AbstractEntity entity, org.bukkit.event.entity.EntityDamageByEntityEvent event)
Copyright © 2020. All rights reserved.