summaryrefslogtreecommitdiff
path: root/src/game-server/monstermanager.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-27 21:09:23 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:46 +0200
commitf31277b327df701361391b1d4b8bd6f89f4e3109 (patch)
tree0fd2b85c13cb11654ff6cd027e0be7ff6b61c2d6 /src/game-server/monstermanager.cpp
parent960d40d819afb65387469591bdb02e6819d72294 (diff)
downloadmanaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.tar.gz
manaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.tar.bz2
manaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.tar.xz
manaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.zip
[Abilities] Removed the old autoattack system
As a side effect i had to remove the monster attack AI for now. I will readd this as next thing.
Diffstat (limited to 'src/game-server/monstermanager.cpp')
-rw-r--r--src/game-server/monstermanager.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp
index 3a9d791b..df8c6906 100644
--- a/src/game-server/monstermanager.cpp
+++ b/src/game-server/monstermanager.cpp
@@ -235,45 +235,6 @@ void MonsterManager::readMonsterNode(xmlNodePtr node, const std::string &filenam
monster->setAttackDistance(
XML::getProperty(subnode, "attack-distance", 0));
}
- else if (xmlStrEqual(subnode->name, BAD_CAST "attack"))
- {
- AttackInfo *att = AttackInfo::readAttackNode(subnode);
- bool validMonsterAttack = true;
-
- if (att->getDamage().id < 1)
- {
- LOG_WARN(filename
- << ": Attack without ID for monster Id:"
- << id << " (" << name << ") - attack ignored");
- validMonsterAttack = false;
- }
- else if (att->getDamage().element == ELEMENT_ILLEGAL)
- {
- LOG_WARN(filename
- << ": Attack with unknown element for monster Id:"
- << id << " (" << name << ") - attack ignored");
- validMonsterAttack = false;
- }
- else if (att->getDamage().type == DAMAGE_OTHER)
- {
- LOG_WARN(filename
- << ": Attack with unknown damage type "
- << "for monster Id:" << id
- << " (" << name << ")");
- validMonsterAttack = false;
- }
-
- if (validMonsterAttack)
- {
- monster->addAttack(att);
- }
- else
- {
- delete att;
- att = 0;
- }
-
- }
else if (xmlStrEqual(subnode->name, BAD_CAST "vulnerability"))
{
Element element = elementFromString(