Jump to content

[BUG] Glyph 40916


Recommended Posts

Posted

Не работает глиф http://www.wowhead.com/item=40916 Вот код переделаный с тринити..

SpellEffects.cpp

    void Spell::EffectScriptEffect(uint32 effIndex)
{           
+ // Glyph of Starfire
+                case 54846:
+                {
+                    if (Aura const * aur = unitTarget->GetAura(SPELL_AURA_PERIODIC_DAMAGE,SPELLFAMILY_DRUID ,UI64LIT(0x00000002),0,m_caster->GetGUID()))
+                    {
+                        uint32 countMin = aur->GetBase()->GetMaxDuration();
+                        uint32 countMax = 18000;
+                        countMax += m_caster->HasAura(38414) ? 3000 : 0;
+                        countMax += m_caster->HasAura(57865) ? 3000 : 0;
+
+                        if (countMin < countMax)
+                        {
+                            aur->GetBase()->SetDuration(uint32(aur->GetBase()->GetDuration()+3000));
+                            aur->GetBase()->SetMaxDuration(countMin+3000);
+                       }
+                    }
+                    return;
               }

unit.cpp

       case SPELLFAMILY_DRUID:
       {
           switch(dummySpell->Id)
           {
+               // Glyph of Starfire
+                case 54845:
+                {
+                    triggered_spell_id = 54846;
+                    break;
               }

Проблема втом что не компилится.Где я допустил ошибку?

×
×
  • 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