From 62f1e23dff18a00066ce9a9df67e058d5e5d7bbd 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 d7449b0..263c20c 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