fix-mirror-self #36
@ -1328,36 +1328,51 @@ class SummonUndeadEffect extends SummonEffect {
|
|||||||
|
|
||||||
const PowerClasses = {
|
const PowerClasses = {
|
||||||
'arcane protection': ArcaneProtectionEffect,
|
'arcane protection': ArcaneProtectionEffect,
|
||||||
|
'arcane-protection': ArcaneProtectionEffect,
|
||||||
blast: BlastEffect,
|
blast: BlastEffect,
|
||||||
blind: BlindEffect,
|
blind: BlindEffect,
|
||||||
bolt: BoltEffect,
|
bolt: BoltEffect,
|
||||||
'boost/lower trait': BoostLowerTraitEffect,
|
'boost/lower trait': BoostLowerTraitEffect,
|
||||||
|
'boostlower-trait': BoostLowerTraitEffect,
|
||||||
'boost trait': BoostLowerTraitEffect,
|
'boost trait': BoostLowerTraitEffect,
|
||||||
|
'boost-trait': BoostLowerTraitEffect,
|
||||||
burrow: BurrowEffect,
|
burrow: BurrowEffect,
|
||||||
burst: BurstEffect,
|
burst: BurstEffect,
|
||||||
'conceal arcana': DetectConcealArcanaEffect,
|
'conceal arcana': DetectConcealArcanaEffect,
|
||||||
|
'conceal-arcana': DetectConcealArcanaEffect,
|
||||||
confusion: ConfusionEffect,
|
confusion: ConfusionEffect,
|
||||||
darksight: DarksightEffect,
|
darksight: DarksightEffect,
|
||||||
deflection: DeflectionEffect,
|
deflection: DeflectionEffect,
|
||||||
'detect arcana': DetectConcealArcanaEffect,
|
'detect arcana': DetectConcealArcanaEffect,
|
||||||
|
'detect-arcana': DetectConcealArcanaEffect,
|
||||||
'detect/conceal aracana': DetectConcealArcanaEffect,
|
'detect/conceal aracana': DetectConcealArcanaEffect,
|
||||||
|
'detectconceal-aracana': DetectConcealArcanaEffect,
|
||||||
disguise: DisguiseEffect,
|
disguise: DisguiseEffect,
|
||||||
entangle: EntangleEffect,
|
entangle: EntangleEffect,
|
||||||
intangibility: IntangibilityEffect,
|
intangibility: IntangibilityEffect,
|
||||||
invisibility: InvisibilityEffect,
|
invisibility: InvisibilityEffect,
|
||||||
'lower trait': BoostLowerTraitEffect,
|
'lower trait': BoostLowerTraitEffect,
|
||||||
|
'lower-trait': BoostLowerTraitEffect,
|
||||||
protection: ProtectionEffect,
|
protection: ProtectionEffect,
|
||||||
'shape change': ShapeChangeEffect,
|
'shape change': ShapeChangeEffect,
|
||||||
|
'shape-change': ShapeChangeEffect,
|
||||||
sloth: SlothSpeedEffect,
|
sloth: SlothSpeedEffect,
|
||||||
'sloth/speed': SlothSpeedEffect,
|
'sloth/speed': SlothSpeedEffect,
|
||||||
|
slothspeed: SlothSpeedEffect,
|
||||||
smite: SmiteEffect,
|
smite: SmiteEffect,
|
||||||
speed: SlothSpeedEffect,
|
speed: SlothSpeedEffect,
|
||||||
'summon ally': SummonAllyEffect,
|
'summon ally': SummonAllyEffect,
|
||||||
|
'summon-ally': SummonAllyEffect,
|
||||||
'summon animal': SummonAnimalEffect,
|
'summon animal': SummonAnimalEffect,
|
||||||
|
'summon-animal': SummonAnimalEffect,
|
||||||
'summon monster': SummonMonsterEffect,
|
'summon monster': SummonMonsterEffect,
|
||||||
|
'summon-monster': SummonMonsterEffect,
|
||||||
"summon nature's ally": SummonNaturesAllyEffect,
|
"summon nature's ally": SummonNaturesAllyEffect,
|
||||||
|
'summon-natures-ally': SummonNaturesAllyEffect,
|
||||||
'summon planar ally': SummonPlanarAllyEffect,
|
'summon planar ally': SummonPlanarAllyEffect,
|
||||||
|
'summon-planar-ally': SummonPlanarAllyEffect,
|
||||||
'summon undead': SummonUndeadEffect,
|
'summon undead': SummonUndeadEffect,
|
||||||
|
'summon-undead': SummonUndeadEffect,
|
||||||
zombie: SummonUndeadEffect
|
zombie: SummonUndeadEffect
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1370,7 +1385,7 @@ export async function powerEffects (options = {}) {
|
|||||||
|
|
||||||
const targets = 'targets' in options ? Array.from(options.targets) : []
|
const targets = 'targets' in options ? Array.from(options.targets) : []
|
||||||
const item = 'item' in options ? options.item : null
|
const item = 'item' in options ? options.item : null
|
||||||
const name = 'name' in options ? options.name : (item !== null ? item.name : null)
|
const name = options?.name || item?.system?.swid || item?.name || null
|
||||||
|
|
||||||
const lcName = name.toLowerCase()
|
const lcName = name.toLowerCase()
|
||||||
for (const name in PowerClasses) {
|
for (const name in PowerClasses) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user