summaryrefslogtreecommitdiffstats
path: root/src/game-server/abilitycomponent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/abilitycomponent.h')
-rw-r--r--src/game-server/abilitycomponent.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game-server/abilitycomponent.h b/src/game-server/abilitycomponent.h
index def3e00..7d3472e 100644
--- a/src/game-server/abilitycomponent.h
+++ b/src/game-server/abilitycomponent.h
@@ -56,10 +56,12 @@ public:
void update(Entity &entity);
- void useAbilityOnBeing(Entity &user, int id, Entity *b);
- void useAbilityOnPoint(Entity &user, int id, int x, int y);
+ bool useAbilityOnBeing(Entity &user, int id, Entity *b);
+ bool useAbilityOnPoint(Entity &user, int id, int x, int y);
bool giveAbility(int id, int currentMana = 0);
+ bool giveAbility(const AbilityManager::AbilityInfo *info,
+ int currentMana = 0);
bool hasAbility(int id) const;
bool takeAbility(int id);
AbilityMap::iterator findAbility(int id);