From f31277b327df701361391b1d4b8bd6f89f4e3109 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 27 Apr 2013 21:09:23 +0200 Subject: [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. --- src/game-server/monstermanager.cpp | 39 -------------------------------------- 1 file changed, 39 deletions(-) (limited to 'src/game-server/monstermanager.cpp') 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( -- cgit v1.2.3-70-g09d2