mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			240 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			240 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function onUse(player, item, fromPosition, target, toPosition)
 | |
| 	if Tile(item:getPosition()):hasFlag(TILESTATE_PROTECTIONZONE) then
 | |
| 		item:getPosition():sendMagicEffect(3)
 | |
| 	else
 | |
| 		item:transform(3482, 1)
 | |
| 		item:decay()
 | |
| 	end
 | |
| 	return true
 | |
| end
 | 
