mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11533] Fixed wrong call IsFitToFamilyMask in my prev commit.
Also prevent like wrong usage in future by additional check.
This commit is contained in:
parent
da06d09c45
commit
b5c3ec952f
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue