Support for spell field to determine if a spell can be blocked or not.

Numerous other spell fields defined.

Required sql added for updating spells_new field definations.
This commit is contained in:
KayenEQ
2014-11-14 00:23:26 -05:00
parent 8c8cec29d4
commit 6c7a4edae3
5 changed files with 22 additions and 5 deletions
+2 -2
View File
@@ -3770,7 +3770,7 @@ void Client::Handle_OP_BlockedBuffs(const EQApplicationPacket *app)
for (unsigned int i = 0; i < BLOCKED_BUFF_COUNT; ++i)
{
if ((bbs->SpellID[i] > 0) && IsBeneficialSpell(bbs->SpellID[i]))
if ((IsValidSpell(bbs->SpellID[i])) && IsBeneficialSpell(bbs->SpellID[i]) && !spells[bbs->SpellID[i]].no_block)
{
if (BlockedBuffs->find(bbs->SpellID[i]) == BlockedBuffs->end())
BlockedBuffs->insert(bbs->SpellID[i]);
@@ -3818,7 +3818,7 @@ void Client::Handle_OP_BlockedBuffs(const EQApplicationPacket *app)
for (unsigned int i = 0; i < BLOCKED_BUFF_COUNT; ++i)
{
if (!IsBeneficialSpell(bbs->SpellID[i]))
if (!IsValidSpell(bbs->SpellID[i]) || !IsBeneficialSpell(bbs->SpellID[i]) || spells[bbs->SpellID[i]].no_block)
continue;
if ((BlockedBuffs->size() < BLOCKED_BUFF_COUNT) && (BlockedBuffs->find(bbs->SpellID[i]) == BlockedBuffs->end()))