mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Cleaned up unneeded requires in some scripts Fixed Second Wind Added new effect scripts Added bard song scripts that mostly work
		
			
				
	
	
		
			15 lines
		
	
	
		
			423 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			423 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| require("battleutils")
 | |
| 
 | |
| --Untraited reduces cooldown by 50%
 | |
| --Traited reduces cooldown by 100%
 | |
| function onCommandStart(effect, owner, skill, actionContainer)
 | |
|     if skill.commandType == CommandType.Weaponskill then
 | |
|         local reduction = 0.5;
 | |
| 
 | |
|         if effect.GetTier() == 2 then
 | |
|             reduction = 1.0;
 | |
|         end
 | |
| 
 | |
|         skill.recastTimeMs = skill.recastTimeMs - (reduction * skill.recastTimeMs);
 | |
|     end
 | |
| end; |