fix: potion harm

This commit is contained in:
cha0s 2020-04-19 23:56:15 -05:00
parent 0a86dda8d3
commit f4517f4b50
2 changed files with 4 additions and 4 deletions

View File

@ -118,5 +118,6 @@ export function harmTypes() {
'sharp',
'fire',
'ice',
'potion',
];
}

View File

@ -4,8 +4,8 @@ import {AFFINITY_NONE} from '../../common/combat/constants';
// Healing potion.
export function potionJSON() {
const causeHealing = buildInvoke(['wielder', 'takeHarmFrom'], [
buildTraversal(['item']),
const causeHealing = buildInvoke(['item', 'harm'], [
buildTraversal(['wielder']),
]);
const decrement = buildInvoke(
['item', 'decrementQuantity'],
@ -19,8 +19,7 @@ export function potionJSON() {
params: {
harmSpecs: [
{
affinity: AFFINITY_NONE,
lock: 0,
type: 'potion',
power: -50,
variance: 0.1,
},