forked from public/foundryvtt-reve-de-dragon
Ajout du StatusEffect surencombré
This commit is contained in:
@@ -186,6 +186,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
|
||||
await this.changeBleedingState()
|
||||
break
|
||||
}
|
||||
await super.onCreateItem(item, options, id)
|
||||
}
|
||||
|
||||
async onUpdateItem(item, options, id) {
|
||||
@@ -194,6 +195,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
|
||||
await this.changeBleedingState()
|
||||
break
|
||||
}
|
||||
await super.onUpdateItem(item, options, id)
|
||||
}
|
||||
|
||||
async changeBleedingState() {
|
||||
@@ -313,7 +315,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
|
||||
}
|
||||
|
||||
isSonne() {
|
||||
return this.getEffectByStatus(STATUSES.StatusStunned)
|
||||
return this.getEffectsByStatus(STATUSES.StatusStunned).length > 0
|
||||
}
|
||||
|
||||
isEffectAllowed(effectId) { return true }
|
||||
|
||||
Reference in New Issue
Block a user