feat: effect and triggers
This commit is contained in:
@@ -79,3 +79,7 @@ export function* getAliveEnemies(state: CombatState) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function getCombatEntity(state: CombatState, entityKey: string){
|
||||
return entityKey === 'player' ? state.player : state.enemies.find(e => e.id === entityKey);
|
||||
}
|
||||
Reference in New Issue
Block a user