Jump to content

Diminishing Return


Zevran

Recommended Posts

Posted

Hi everyone,

I was looking at Diminishing Return in SpellMgr.cpp, i tried to understand how it works but in the code i cant find where some values are coming from !

For example :

           // Kidney Shot
           if (spellproto->IsFitToFamilyMask(UI64LIT(0x00000200000)))
               return DIMINISHING_KIDNEYSHOT;

Where come from the "0x00000200000" ?

I looked at SpellWork and also check Spell.dbc file with dbc reader and i didn't find anything.

So i require your help :D

Thanks

Posted

I 've already check this way, there is too much 0s and it's wrong, let's take an other example :

            // Fear
           if (spellproto->IsFitToFamilyMask(UI64LIT(0x40840000000)))
               return DIMINISHING_WARLOCK_FEAR;

With SpellWork :

SpellFamilyFlags = 0x0000040000000000

Any idea ?

Posted

The function IsFitToFamilyMask regroup many flags :

    bool IsFitToFamilyMask(uint64 familyFlags) const
   {
       return Flags & familyFlags;
   }

but how can i get the final flag ? Wich flags should i have to "mix" ?

Posted

He already told you where to look. And for example, take warlocks fear, get flag in mangos then substract the fear flag and you will have classflag.

R2 did some work regarding this, maby you can read some about it.

Archived

This topic is now archived and is 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