forked from public/foundryvtt-wh4-lang-fr-fr
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			305 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			305 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| let woundsGained = Math.min(args.totalWoundLoss, args.actor.status.wounds.value)
 | |
| 
 | |
| woundsGained = Math.floor(woundsGained / 2)
 | |
| 
 | |
| args.attacker.update({ "system.status.wounds.value": args.attacker.status.wounds.value + woundsGained })
 | |
| 
 | |
| this.script.scriptMessage(`Récupération de ${woundsGained} Blessures`) |