Jump to content

[6967][303] Blessing


Guest Woweur

Recommended Posts

What bug does the patch fix? What features does the patch add?

Paladins can get as many blessings as they wish. My patch fix this problem.

For which repository revision was the patch created?

im sorry but i havn't git and i can't write the patch. I just post the code.

Who has been writing this patch? Please include either forum user names or email addresses.

Woweur.

In SpellMGR.cpp

delete :

           if (IsSealSpell(spellInfo))
               return SPELL_SEAL;

           if (spellInfo->SpellFamilyFlags & 0x10000100LL)
               return SPELL_BLESSING;;

and add :

           if ((spellInfo->Attributes == 0x50000) && (spellInfo->SpellIconID == 206 || spellInfo->SpellIconID == 561 || spellInfo->SpellIconID == 2292 || spellInfo->SpellIconID == 2292 || spellInfo->SpellIconID == 25 || spellInfo->SpellIconID == 307 || spellInfo->SpellIconID ==299))
               return SPELL_SEAL;

           if ((spellInfo->Attributes == 0x50000) && (spellInfo->SpellIconID == 298 || spellInfo->SpellIconID == 306 || spellInfo->SpellIconID == 1802|| spellInfo->SpellIconID ==1805|| spellInfo->SpellIconID ==1800|| spellInfo->SpellIconID ==1804 || spellInfo->SpellIconID == 332 ))
               return SPELL_BLESSING;

Link to comment
Share on other sites

Better Try fix Family flag


inline bool IsSealSpell(SpellEntry const *spellInfo)
{
   //Collection of all the seal family flags. No other paladin spell has any of those.
   return spellInfo->SpellFamilyName == SPELLFAMILY_PALADIN &&
       ( spellInfo->SpellFamilyFlags & [b]0x26000C000A000000LL[/b] );
}

and 

[color=Black]if (spellInfo->SpellFamilyFlags & [b]0x0000000011010002L[/b][/color][color=Black][b]L[/b])
   return SPELL_BLESSING;[/color]

Link to comment
Share on other sites

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