mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user