summaryrefslogtreecommitdiffstats
path: root/src/game-server/monstermanager.cpp
diff options
context:
space:
mode:
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 3a9d791..df8c690 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(