forked from public/foundryvtt-wh4-lang-fr-fr
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			328 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			328 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| let test = await this.actor.setupSkill(game.i18n.localize("NAME.Perception"), {skipTargets: true, appendTitle :  ` - ${this.effect.name}`, fields : {difficulty : "easy"}});
 | |
| await test.roll();
 | |
| 
 | |
| if (test.succeeded)
 | |
| {
 | |
|     this.actor.addCondition("stunned")   
 | |
| }
 | |
| else if (test.failed)
 | |
| {
 | |
|     this.actor.addCondition("poisoned", 2);
 | |
| } |