71 lines
1.5 KiB
JavaScript
71 lines
1.5 KiB
JavaScript
import { moduleName } from '../globals.js';
|
|
import { PowerEffect } from './basePowers.js';
|
|
|
|
export class IntangibilityEffect extends PowerEffect {
|
|
get name() {
|
|
return 'Intangility';
|
|
}
|
|
|
|
get duration() {
|
|
return 5;
|
|
}
|
|
|
|
get icon() {
|
|
return 'icons/magic/control/debuff-energy-hold-levitate-blue-yellow.webp';
|
|
}
|
|
|
|
get hasAdditionalRecipients() {
|
|
return true;
|
|
}
|
|
|
|
get additionalRecipientCost() {
|
|
return 3;
|
|
}
|
|
|
|
get additionalRecipientsIsEpic() {
|
|
return true;
|
|
}
|
|
|
|
get basePowerPoints() {
|
|
return 5;
|
|
}
|
|
|
|
get isTargeted() {
|
|
return true;
|
|
}
|
|
|
|
get isRaisable() {
|
|
return true;
|
|
}
|
|
|
|
get modifiers() {
|
|
const mods = super.modifiers;
|
|
mods.push({
|
|
name: 'Duration',
|
|
type: 'checkbox',
|
|
id: 'Duration',
|
|
value: 3,
|
|
epic: true,
|
|
effect: false,
|
|
});
|
|
return mods;
|
|
}
|
|
|
|
get description() {
|
|
let text =
|
|
super.description +
|
|
`<p>
|
|
The subject becomes incorporeal. Non magical weapons and walls can't
|
|
affect him. The character may affect other incorporeal beings, and is still
|
|
susceptible to supernatural attacks. Unwilling targets resist with Spirit,
|
|
and shake off the effect with a Spirit roll at the end of following turns.</p>
|
|
<p>The being is Stunned and shunted to an open space if it is within
|
|
something solid when the power ends.</p>
|
|
`;
|
|
if (this.data.raise) {
|
|
text += '<p>Reduce damage taken from supernatural effects and magic weapons by 4.</p>';
|
|
}
|
|
return text;
|
|
}
|
|
}
|