[11533] Fixed wrong call IsFitToFamilyMask in my prev commit.

Also prevent like wrong usage in future by additional check.
This commit is contained in:
VladimirMangos 2011-05-24 17:48:17 +04:00
parent da06d09c45
commit b5c3ec952f
3 changed files with 6 additions and 2 deletions

View file

@ -1639,6 +1639,10 @@ struct SpellEntry
private: private:
// prevent creating custom entries (copy data from original in fact) // prevent creating custom entries (copy data from original in fact)
SpellEntry(SpellEntry const&); // DON'T must have implementation SpellEntry(SpellEntry const&); // DON'T must have implementation
// catch wrong uses
template<typename T>
bool IsFitToFamilyMask(SpellFamily family, T t) const;
}; };
struct SpellCastTimesEntry struct SpellCastTimesEntry

View file

@ -3988,7 +3988,7 @@ SpellAuraProcResult Unit::HandleModResistanceAuraProc(Unit* /*pVictim*/, uint32
SpellEntry const *spellInfo = triggeredByAura->GetSpellProto(); SpellEntry const *spellInfo = triggeredByAura->GetSpellProto();
// Inner Fire // Inner Fire
if (spellInfo->IsFitToFamilyMask(SPELLFAMILY_PRIEST, UI64LIT(0x0000000000002))) if (spellInfo->IsFitToFamily(SPELLFAMILY_PRIEST, UI64LIT(0x0000000000002)))
{ {
// only at real damage // only at real damage
if (!damage) if (!damage)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11532" #define REVISION_NR "11533"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__