diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-10-30 22:22:55 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-10-30 22:22:55 +0000 |
commit | 779061286036dcee24c0dd65d01f71b8b1e234df (patch) | |
tree | 3a5fb7195cd8a86879607ae81af3d2e69149ef0f /src/net/beinghandler.cpp | |
parent | 957da7a45ac7077b65f7ea00682d50345c3937f5 (diff) | |
download | mana-client-779061286036dcee24c0dd65d01f71b8b1e234df.tar.gz mana-client-779061286036dcee24c0dd65d01f71b8b1e234df.tar.bz2 mana-client-779061286036dcee24c0dd65d01f71b8b1e234df.tar.xz mana-client-779061286036dcee24c0dd65d01f71b8b1e234df.zip |
Added particle effect on critical hits.
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r-- | src/net/beinghandler.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index 101d1149..fa2b6728 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -235,9 +235,13 @@ void BeingHandler::handleMessage(MessageIn *msg) switch (type) { - case 0x00: // Damage case 0x0a: // Critical Damage if (dstBeing) { + dstBeing->controlParticle(particleEngine->addEffect( + "graphics/particles/crit.particle.xml", 0, 0)); + } + case 0x00: // Damage + if (dstBeing) { dstBeing->takeDamage(param1); } if (srcBeing) { @@ -415,9 +419,9 @@ void BeingHandler::handleMessage(MessageIn *msg) dstBeing->setSprite(Being::BOTTOMCLOTHES_SPRITE, headBottom); dstBeing->setSprite(Being::TOPCLOTHES_SPRITE, headMid); dstBeing->setSprite(Being::HAT_SPRITE, headTop); - if (shoes > 10) // only if supported by eAthena - dstBeing->setSprite(Being::SHOE_SPRITE, shoes); - if (gloves > 10) // only if supported by eAthena + dstBeing->setSprite(Being::SHOE_SPRITE, shoes); + // Compensation for the unpatched TMW server + if (gloves > 10) dstBeing->setSprite(Being::GLOVES_SPRITE, gloves); dstBeing->setSprite(Being::CAPE_SPRITE, cape); dstBeing->setSprite(Being::MISC1_SPRITE, misc1); |