Jump to content

[fix] Implementspell 28089, and others triggered


Auntie Mangos

Recommended Posts

  • 39 years later...

* What bug does the patch fix? What features does the patch add?

Implement spell 28089 dummy effect

Implement spell 28059,28062, 28084,28085 misc properties

* For which repository revision was the patch created?

9058

* Who has been writing this patch? Please include either forum user names or email addresses.

yavi, 28089 ported from Trinity with modification.

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 1f3c91d..49d59c9 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2150,6 +2150,16 @@ void Aura::TriggerSpell()
                target->CastCustomSpell(target, trigger_spell_id, &m_modifier.m_amount, NULL, NULL, true, NULL, this);
                return;
            }
+            //Positive Charge
+            case 28059:
+                if (Unit* caster = GetCaster())
+                    caster->RemoveAurasDueToSpell(29660);
+                break;
+            //Negative Charge
+            case 28084:
+                if (Unit* caster = GetCaster())
+                    caster->RemoveAurasDueToSpell(29659);
+                break;
            // Ground Slam
            case 33525:
                target->CastSpell(target, trigger_spell_id, true, NULL, this, casterGUID);
@@ -2381,6 +2391,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)

        switch(GetId())
        {
+            case 28059: // Positive Charge
+                m_target->RemoveAurasDueToSpell(29660);
+                return;
+            case 28084: // Negative Charge
+                m_target->RemoveAurasDueToSpell(29659);
+                return;
            case 28169:                                     // Mutating Injection
            {
                // Mutagen Explosion
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 3cc731a..0b6737a 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -358,6 +358,24 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
                    }
                    // Intercept (warrior spell trigger)
                    case 20253:
+                    case 28062:// Positive Charge
+                        if(!unitTarget->IsWithinDist(m_caster,8.0f,false)) damage=0;
+                        if(unitTarget->HasAura(28059))
+                        {
+                            damage = 0;
+                            if(m_caster != unitTarget)
+                                m_caster->CastSpell(m_caster, 29660, true,0,m_caster->GetAura(28059,0));
+                        }
+                        break;
+                    case 28085: // Negative Charge
+                        if(!unitTarget->IsWithinDist(m_caster,8.0f,false)) damage=0;
+                        if(unitTarget->HasAura(28084))
+                        {
+                            damage = 0;
+                            if(m_caster != unitTarget)
+                                m_caster->CastSpell(m_caster, 29659, true,0,m_caster->GetAura(28084,0));
+                        }
+                        break;
                    case 61491:
                    {
                        damage+= uint32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.12f);
@@ -1003,7 +1021,7 @@ void Spell::EffectDummy(uint32 i)
                }
+                case 28089:
+                    if(unitTarget)
+                        unitTarget->CastSpell(unitTarget,roll_chance_i(50) ? 28059 : 28084, true, NULL, NULL, 0);
+                   break;
                case 29200:                                 // Purify Helboar Meat
                {

Uses 2 hacks:

o Reduced spell distance due to lack of hitbox support/to small hitbox of boss_thadius. Full range would make offlike tactic unusable, and boss almost impossible to kill.

o Cross-use buffs 29659 and 29660, because they replace their parent aura, and I have no knowledge of aura slots/stacks/etc to fix it the right way (Perhaps the reviever could do that).

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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