summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-07 17:43:55 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-07 18:52:01 +0200
commit91f54b7fc9c1ad35316575ef10983a0eabafbe83 (patch)
treec8c886fcd207810a03772a1201ca338053bb3fb2 /src/resources
parentafa134640b2e2c7c0f28a54c8691545848795dd9 (diff)
downloadmana-client-91f54b7fc9c1ad35316575ef10983a0eabafbe83.tar.gz
mana-client-91f54b7fc9c1ad35316575ef10983a0eabafbe83.tar.bz2
mana-client-91f54b7fc9c1ad35316575ef10983a0eabafbe83.tar.xz
mana-client-91f54b7fc9c1ad35316575ef10983a0eabafbe83.zip
Added defaults to empty attacks.
Reviewed-by: Jaxad0127.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/beinginfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index e6dc948e..62990392 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -22,6 +22,7 @@
#include "resources/beinginfo.h"
#include "log.h"
+#include "configuration.h"
#include "utils/dtor.h"
#include "utils/gettext.h"
@@ -90,7 +91,10 @@ const std::string &BeingInfo::getSound(SoundEvent event) const
const Attack *BeingInfo::getAttack(int id) const
{
- static Attack *empty = new Attack(SpriteAction::ATTACK, -1, -1, -1,
+ static Attack *empty = new Attack(SpriteAction::ATTACK,
+ -1, // Default strike effect on monster
+ paths.getIntValue("hitEffectId"),
+ paths.getIntValue("criticalHitEffectId"),
std::string());
Attacks::const_iterator i = mAttacks.find(id);