diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-22 09:21:01 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:46 +0200 |
commit | 10c33df8e5a13e7e7b4a3ea203516536582b2f4b (patch) | |
tree | 1a70952daf82d5e0d9067c7d95105da40c10b8b2 /example | |
parent | d1fe3b52bda94126ba96b20146f5e9dfd3a9c311 (diff) | |
download | manaserv-10c33df8e5a13e7e7b4a3ea203516536582b2f4b.tar.gz manaserv-10c33df8e5a13e7e7b4a3ea203516536582b2f4b.tar.bz2 manaserv-10c33df8e5a13e7e7b4a3ea203516536582b2f4b.tar.xz manaserv-10c33df8e5a13e7e7b4a3ea203516536582b2f4b.zip |
[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.
Diffstat (limited to 'example')
-rw-r--r-- | example/scripts/abilities.lua | 1 |
1 files changed, 0 insertions, 1 deletions
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) |