Fixed spells having a stray deativatedBySelf flag
This commit is contained in:
@@ -65,7 +65,7 @@ const castSpellWithSlot = new ValidatedMethod({
|
||||
action: spell,
|
||||
context: {slotLevel},
|
||||
creature,
|
||||
target,
|
||||
targets: [target],
|
||||
method: this,
|
||||
});
|
||||
// Note this only recomputes the top-level creature, not the nearest one
|
||||
|
||||
@@ -60,11 +60,13 @@ export default function recomputeInactiveProperties(ancestorId){
|
||||
$or: [
|
||||
{inactive: true},
|
||||
{deactivatedByAncestor: true},
|
||||
{deactivatedBySelf: true}
|
||||
],
|
||||
}, {
|
||||
$unset: {
|
||||
inactive: 1,
|
||||
deactivatedByAncestor: 1,
|
||||
deactivatedBySelf: 1,
|
||||
},
|
||||
}, {
|
||||
multi: true,
|
||||
|
||||
Reference in New Issue
Block a user