add new deflection effect
This commit is contained in:
parent
13e6c9bcf7
commit
eccb4778cb
@ -754,6 +754,36 @@ class DarksightEffect extends PowerEffect {
|
||||
}
|
||||
}
|
||||
|
||||
class DeflectionEffect extends PowerEffect {
|
||||
get name () { return 'Deflection' }
|
||||
get icon () { return 'icons/magic/defensive/shield-barrier-deflect-teal.webp' }
|
||||
get duration () { return 5 }
|
||||
get basePowerPoints () { return 2 }
|
||||
get isTargeted () { return true }
|
||||
get hasAdditionalRecipients () { return true }
|
||||
get additionalRecipientCost () { return 1 }
|
||||
get menuButtons () {
|
||||
const data = [
|
||||
{ label: 'Melee', value: 'melee' },
|
||||
{ label: 'Ranged', value: 'vulnerable' },
|
||||
{ label: 'Raise (both)', value: 'raise' },
|
||||
{ label: 'Cancel', value: 'cancel' },
|
||||
]
|
||||
return data
|
||||
}
|
||||
async parseValues () {
|
||||
await super.parseValues()
|
||||
this.data.affects = this.data.button === 'raise' ? 'all' : this.data.button
|
||||
}
|
||||
get effectName () {
|
||||
return `Deflection (${this.data.affects})`
|
||||
}
|
||||
get description () {
|
||||
return super.description + `<p>Attackers subtract -2 from ${this.data.affects}
|
||||
attacks when targeting this creature.</p>`
|
||||
}
|
||||
}
|
||||
|
||||
const PowerClasses = {
|
||||
"arcane-protection": ArcaneProtectionEffect,
|
||||
banish: BanishEffect,
|
||||
@ -770,6 +800,7 @@ const PowerClasses = {
|
||||
curse: CurseEffect,
|
||||
"damage-field": DamageFieldEffect,
|
||||
darksight: DarksightEffect,
|
||||
deflection: DeflectionEffect,
|
||||
"lower-trait": BoostLowerTraitEffect,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user