mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Replace hard coded 12 with EFFECT_COUNT in the two spots I see it used.
This commit is contained in:
parent
0f92287c02
commit
e384cf6149
@ -962,7 +962,7 @@ void NPC::Depop(bool StartSpawnTimer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool NPC::DatabaseCastAccepted(int spell_id) {
|
bool NPC::DatabaseCastAccepted(int spell_id) {
|
||||||
for (int i=0; i < 12; i++) {
|
for (int i=0; i < EFFECT_COUNT; i++) {
|
||||||
switch(spells[spell_id].effectid[i]) {
|
switch(spells[spell_id].effectid[i]) {
|
||||||
case SE_Stamina: {
|
case SE_Stamina: {
|
||||||
if(IsEngaged() && GetHPRatio() < 100)
|
if(IsEngaged() && GetHPRatio() < 100)
|
||||||
|
|||||||
@ -3703,7 +3703,7 @@ void ZoneDatabase::LoadBuffs(Client *client)
|
|||||||
if (!IsValidSpell(buffs[index].spellid))
|
if (!IsValidSpell(buffs[index].spellid))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (int effectIndex = 0; effectIndex < 12; ++effectIndex) {
|
for (int effectIndex = 0; effectIndex < EFFECT_COUNT; ++effectIndex) {
|
||||||
|
|
||||||
if (spells[buffs[index].spellid].effectid[effectIndex] == SE_Charm) {
|
if (spells[buffs[index].spellid].effectid[effectIndex] == SE_Charm) {
|
||||||
buffs[index].spellid = SPELL_UNKNOWN;
|
buffs[index].spellid = SPELL_UNKNOWN;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user