Jump to content

[SPELL=50141]Blood Oath


Guest virusav

Recommended Posts

Using the result of either cast a spell 50141, which apparently uses aura 50001, which is cast spell 50016 - quest complete.

According to the man with the official server, use the result of either - the quest completed.

Using the result of either or caste spell 50141 does not occur.

There are similar situations with spells, how to fix the work spells in such cases?

Link to comment
Share on other sites

I've fix but it look hacky.

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 2b9258a..60ce9b4 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2450,6 +2450,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
                        if (m_target->GetTypeId() == TYPEID_PLAYER)
                            ((Player*)m_target)->removeSpell(63680);
                        return;
+                    case 50141:
+                        // Blood Oath
+                        m_target->CastSpell(m_target, 50001, true);
+                        return;
                }
                break;
            }
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index fe317f7..e6374aa 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5871,6 +5871,16 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
                    m_caster->CastSpell(unitTarget, 72588, true);
                    return;
                }
+                case 50001:
+                {
+                    if (!unitTarget)
+                        return;
+                    
+                    //uint32 unknown = m_spellInfo->CalculateSimpleValue(EFFECT_INDEX_0); // TODO: what it's means.
+
+                    m_caster->CastSpell(m_caster, 50016, true);
+                    return;
+                }
            }
            break;
        }

It's works but I post the patch here only for example.

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