Merge branch 'v1.5-fix-parade' into 'v1.5'
V1.5 fix parade See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!309
This commit is contained in:
commit
4a1a7ceac1
@ -150,7 +150,6 @@ export class Misc {
|
||||
* @returns true pour un seul utilisateur: le premier GM connecté par ordre d'id
|
||||
*/
|
||||
static isUniqueConnectedGM() {
|
||||
console.log(game.user.id, Misc.firstConnectedGM()?.id)
|
||||
return game.user.id == Misc.firstConnectedGM()?.id;
|
||||
}
|
||||
|
||||
|
@ -954,9 +954,10 @@ export class RdDCombat {
|
||||
/* -------------------------------------------- */
|
||||
_filterArmesParade(defender, competence) {
|
||||
let items = defender.data.items;
|
||||
items = items.filter(it => RdDItemArme.isArmeUtilisable(it) || RdDItemCompetenceCreature.isCompetenceParade(it));
|
||||
items = items.filter(it => RdDItemArme.isArmeUtilisable(it) || RdDItemCompetenceCreature.isCompetenceParade(it))
|
||||
.map(Misc.data);
|
||||
for (let item of items) {
|
||||
item.data.nbUsage = defender.getItemUse(item.id); // Ajout du # d'utilisation ce round
|
||||
item.data.nbUsage = defender.getItemUse(item._id); // Ajout du # d'utilisation ce round
|
||||
}
|
||||
switch (competence.data.categorie) {
|
||||
case 'tir':
|
||||
|
Loading…
Reference in New Issue
Block a user