Jump to content

[question] About 'spellentry Const* M_spellinfo'


Guest ProfOrribilus
 Share

Recommended Posts

src/game/Spell.cpp        (revision 6240)
@@ -2068,1 +2085,6 @@

       // Okay, everything is prepared. Now we need to distinguish between immediate and evented delayed spells
       if (m_spellInfo->speed > 0.0f)
       {

               // Remove used for cast item if need (it can be already NULL after TakeReagents call
               // in case delayed spell remove item at cast delay start
               TakeCastItem();

               // Okay, maps created, now prepare flags
               m_immediateHandled = false;
               m_spellState = SPELL_STATE_DELAYED;
               SetDelayStart(0);
       }
       else
       {
               // Immediate spell, no big deal
               handle_immediate();
       }

If m_spellInfo's speed variable is intended to contain floatSpeed field's value in Spell.dbc, why, in the execution of this piece of code (i have watched only this, for now), is always 0 even during Heroic Strike spell casting that in dbc file has floatSpeed set to 1?

Link to comment
Share on other sites

 Share

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