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
		
			
				
	
	
		
			12 lines
		
	
	
		
			518 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			518 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| require("modifiers")
 | |
| require("battleutils")
 | |
| 
 | |
| function onHit(effect, attacker, defender, action, actionContainer)
 | |
|     if action.commandType == CommandType.Spell then
 | |
|         --Necrogenesis returns 75% of damage done rounded up(?) as MP.
 | |
|         local hpToReturn = math.ceil(0.75 * action.amount);
 | |
|         attacker.AddMp(hpToReturn);
 | |
|         actionContainer.AddHPAction(attacker.actorId, 33012, mpToReturn);
 | |
|         actionContainer.AddAction(attacker.statusEffects.RemoveStatusEffectForBattleAction(effect));
 | |
|     end
 | |
| end |