diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/net/beinghandler.cpp | 12 |
2 files changed, 13 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2008-10-30 Philipp Sehmisch <tmw@crushnet.org> + + * src/net/beinghandler.cpp: Added particle effect on critical + hits. + 2008-10-30 Dennis Friis <peavey@placid.dk> * src/net/beinghandler.cpp: Do not set shoe sprite on player move packet unless supported by eAthena. 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); |