forked from public/foundryvtt-reve-de-dragon
Gestion attaques v2 et initiative
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
* class providing the actor and token, and choosing the name and image from the token if available.
|
||||
*/
|
||||
export class ActorToken {
|
||||
static fromTokenActor(token, actor){
|
||||
return token ? ActorToken.fromToken(token) : ActorToken.fromActor(actor)
|
||||
}
|
||||
|
||||
static fromActorId(actorId, onError = () => undefined) {
|
||||
actorId = actorId ?? (canvas.tokens.controlled.length > 0
|
||||
|
Reference in New Issue
Block a user