AttackModifier beta
Interface of @v12-engine/engine
ts
export interface AttackModifierOne of what an attack of a unit sets off (an onHit of its abilities, items or buffs), as the rule of slots sees it (RuleSettings.combat.attackModifiers): where it comes from, its slot and priority
Members
ability
ts
readonly ability: AbilityDef;The ability it goes by: the learned one, the item's passive, the ability that put the buff on (or the buff, as one)
effect
ts
readonly effect: Readonly<AnyEffect>;The onHit effect
from
ts
readonly from: 'ability' | 'item' | 'buff';Where it comes from: an ability the unit learned, an item it carries, a buff on it
level
ts
readonly level: number;The level it goes off at
priority
ts
readonly priority: number;Its priority among those of its slot (EffectFields.priority): 0 when it says none
slot
ts
readonly slot?: string;Its slot (EffectFields.slot): none for one that always adds up