mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 05:37:17 +00:00
Replace hard coded 12 with EFFECT_COUNT in the two spots I see it used.
This commit is contained in:
1 parent
0f92287c02
commit
e384cf6149
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -962,7 +962,7 @@ void NPC::Depop(bool StartSpawnTimer) {
|
||||
}
|
||||
|
||||
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]) {
|
||||
case SE_Stamina: {
|
||||
if(IsEngaged() && GetHPRatio() < 100)
|
||||
|
||||
Reference in new issue
Block a user