Jump to content

[patch][spell=52090]Ahunae's Knife


Guest virusav

Recommended Posts

When using a knife on the corpses of the NPC should be counted killcredit:

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 6a3b3db..b06fd85 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1801,6 +1801,16 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)

                    return;
                }
+                case 52090:                                 // Ahunae's Knife
+                {
+                    if (m_caster->GetTypeId() == TYPEID_PLAYER && unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT)
+                    {
+                        ((Player*)m_caster)->KilledMonsterCredit(28622);
+                        ((Creature*)unitTarget)->ForcedDespawn();
+                    }
+
+                    return;
+                }
                case 52308:                                 // Take Sputum Sample
                {
                    switch(eff_idx) 

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use