From 10c33df8e5a13e7e7b4a3ea203516536582b2f4b Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Mon, 22 Apr 2013 09:21:01 +0200 Subject: [Abilities] Added a autoconsume option You do not need to reset the mana in the scripts if you do not want to. We will need this for attacks later since those do not nessecary have a script. --- example/scripts/abilities.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'example') diff --git a/example/scripts/abilities.lua b/example/scripts/abilities.lua index d7449b0e..263c20ce 100644 --- a/example/scripts/abilities.lua +++ b/example/scripts/abilities.lua @@ -12,6 +12,5 @@ local spell1 = get_ability_info("Magic_Test Spell 1") spell1:on_use(function(user, x, y, abilityId) target = target or user target:say("Kaaame...Haaame... HAAAAAA! " .. x .. " " .. y) - user:set_ability_mana(abilityId, 0) end) spell1:on_recharged(function(ch) ch:say("Hoooooooo...") end) -- cgit v1.2.3-70-g09d2