diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-22 09:21:01 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-08 14:02:51 +0200 |
commit | 62f1e23dff18a00066ce9a9df67e058d5e5d7bbd (patch) | |
tree | 3ae5e42f4df777184deda3e62d5be1a6a6ba9bbc /example | |
parent | 2e977bb3182332fce247c7bdee5db2c43c9de5ee (diff) | |
download | manaserv-62f1e23dff18a00066ce9a9df67e058d5e5d7bbd.tar.gz manaserv-62f1e23dff18a00066ce9a9df67e058d5e5d7bbd.tar.xz manaserv-62f1e23dff18a00066ce9a9df67e058d5e5d7bbd.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 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) |