diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-07 22:08:29 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:47 +0200 |
commit | ba573fcc38580a01985172b9bc864c97ce855af3 (patch) | |
tree | ebcdbcf9a86cd35d5a8ab3bb004faa5c490c16d4 /src/game-server/monster.cpp | |
parent | 7dc001eb32ae5345905e108741984258ee2f1813 (diff) | |
download | manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.tar.gz manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.tar.bz2 manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.tar.xz manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.zip |
Made cooldowns of abilities scriptable
- Removed hardcoded using of attributes
- Simply introduced lua functions to set global and ability cooldowns
- Requires database update
- Bumps the protocol
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r-- | src/game-server/monster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 30be1201..41a69ecb 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -78,7 +78,7 @@ MonsterComponent::MonsterComponent(Entity &entity, MonsterClass *specy): beingComponent->setGender(specy->getGender()); beingComponent->setName(specy->getName()); - AbilityComponent *abilityComponent = new AbilityComponent(entity); + AbilityComponent *abilityComponent = new AbilityComponent(); entity.addComponent(abilityComponent); for (auto *abilitiyInfo : specy->getAbilities()) { |