Add all systems effects scripts
This commit is contained in:
		
							
								
								
									
										14
									
								
								scripts/MFKhU9vp8bQpHP3I.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								scripts/MFKhU9vp8bQpHP3I.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| let value = parseInt(this.item.specification.value) | ||||
| let name = this.actor.prototypeToken.name | ||||
|  | ||||
| if (game.user.isGM && game.user.targets.size) | ||||
| { | ||||
|   game.user.targets.forEach(t => { | ||||
|     t.actor.applyTerror(value, name) | ||||
|   }) | ||||
|   game.user.updateTokenTargets([]); | ||||
| } | ||||
| else  | ||||
| { | ||||
|   game.wfrp4e.utility.postTerror(value, name) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user