mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-13 19:12:26 +00:00
Fix some if checks in Mob::CalcFocusEffect()
This commit is contained in:
parent
69944d907d
commit
16f112a281
@ -4761,24 +4761,24 @@ int16 Mob::CalcFocusEffect(focusType type, uint16 focus_id, uint16 spell_id, boo
|
|||||||
|
|
||||||
case SE_LimitSpellClass:
|
case SE_LimitSpellClass:
|
||||||
if(focus_spell.base[i] < 0) { //Exclude
|
if(focus_spell.base[i] < 0) { //Exclude
|
||||||
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellClass));
|
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellClass))
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LimitInclude[12] = true;
|
LimitInclude[12] = true;
|
||||||
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellClass)); //Include
|
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellClass)) //Include
|
||||||
LimitInclude[13] = true;
|
LimitInclude[13] = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SE_LimitSpellSubclass:
|
case SE_LimitSpellSubclass:
|
||||||
if(focus_spell.base[i] < 0) { //Exclude
|
if(focus_spell.base[i] < 0) { //Exclude
|
||||||
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellSubclass));
|
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellSubclass))
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LimitInclude[14] = true;
|
LimitInclude[14] = true;
|
||||||
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellSubclass)); //Include
|
if (CheckSpellCategory(spell_id, focus_spell.base[i], SE_LimitSpellSubclass)) //Include
|
||||||
LimitInclude[15] = true;
|
LimitInclude[15] = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -6470,4 +6470,4 @@ void Mob::CalcSpellPowerDistanceMod(uint16 spell_id, float range, Mob* caster)
|
|||||||
|
|
||||||
SetSpellPowerDistanceMod(static_cast<int>(mod));
|
SetSpellPowerDistanceMod(static_cast<int>(mod));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user