forked from public/foundryvtt-wh4-lang-fr-fr
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			492 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			492 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  if (args.test.item?.type == "skill" && args.test.item.name.includes(game.i18n.localize("NAME.Stealth")))
 | |
| { 
 | |
|      args.test.result.description = "Echech Stupéfiant";
 | |
|      args.test.result.outcome = "failure";
 | |
|        ChatMessage.create({content : "<em>SQUEAK</em>", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true})
 | |
|         AudioHelper.play({ src: `${game.settings.get("wfrp4e", "soundPath")}squeek.wav` }, true);
 | |
| } |