diff options
Diffstat (limited to 'npc/magic/config.txt')
-rw-r--r-- | npc/magic/config.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/npc/magic/config.txt b/npc/magic/config.txt index e55833bc..f8135b43 100644 --- a/npc/magic/config.txt +++ b/npc/magic/config.txt @@ -337,15 +337,12 @@ function script massprovoke { // getactivatedpoolskilllist(?) function script getactivatedpoolskilllist { - @skilllist_count=bitmask_count(FOCUSING); - // FIXME @skilllist_name$ @skilllist_id? Or just rewrite Luca - return @skilllist_count; + return bitmask_count(FOCUSING); } // getdeactivatedpoolskilllist(?) function script getdeactivatedpoolskilllist { - @skilllist_count=bitmask_count(FOCUSING)-FSKILL_TOTAL; - return @skilllist_count; + return (bitmask_count(FOCUSING)-FSKILL_TOTAL); } // getpoolskillFID(ID) @@ -365,6 +362,7 @@ function script getpoolskillFID { function script poolskill { if (bitmask_count(FOCUSING) < getskilllv(SKILL_POOL)) { FOCUSING=FOCUSING | getpoolskillFID(getarg(0)); + recalcstatus(); return true; } return false; @@ -375,6 +373,7 @@ function script unpoolskill { .@f=getpoolskillFID(getarg(0)); if (FOCUSING & .@f) FOCUSING=FOCUSING ^ .@f; + recalcstatus(); return; } |