mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 18:39:55 +02:00
[Fix] Cleanup RangeDependant (#2039)
* Made the RangeDependent setting for ActiveEffects Nullable * Removed all RangeDependent data from SRD where enabled was false before * Fixed random flickerfly SRD
This commit is contained in:
parent
2782b62793
commit
b2eeed7bb7
280 changed files with 1692 additions and 3605 deletions
|
|
@ -390,7 +390,7 @@ const updateActorsRangeDependentEffects = async token => {
|
|||
).rangeMeasurement;
|
||||
|
||||
for (let effect of token.actor?.allApplicableEffects() ?? []) {
|
||||
if (!effect.system.rangeDependence?.enabled) continue;
|
||||
if (!effect.system.rangeDependence) continue;
|
||||
const { target, range, type } = effect.system.rangeDependence;
|
||||
|
||||
// If there are no targets, assume false. Otherwise, start with the effect enabled.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue