mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 05:01:29 +00:00
[Bug Fix] Self Only Spells will no longer check target level or buff restrictions (#2931)
* [Bug Fix] Self Only Spells now work again (BuffSpellRestrictions) * Moved variables under quick checks per review
This commit is contained in:
parent
8ed7ca977f
commit
18b62667f0
@ -3192,8 +3192,10 @@ int Mob::CheckStackConflict(uint16 spellid1, int caster_level1, uint16 spellid2,
|
|||||||
// 66+ Group Spells 62, Single Target 61
|
// 66+ Group Spells 62, Single Target 61
|
||||||
bool Mob::CheckSpellLevelRestriction(Mob *caster, uint16 spell_id)
|
bool Mob::CheckSpellLevelRestriction(Mob *caster, uint16 spell_id)
|
||||||
{
|
{
|
||||||
bool check_for_restrictions = false;
|
if (spells[spell_id].target_type == ST_Self) {
|
||||||
bool can_cast = true;
|
LogSpells("[CheckSpellLevelRestriction] Self Only spell - no restrictions");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!caster) {
|
if (!caster) {
|
||||||
LogSpells("[CheckSpellLevelRestriction] No caster");
|
LogSpells("[CheckSpellLevelRestriction] No caster");
|
||||||
@ -3205,6 +3207,9 @@ bool Mob::CheckSpellLevelRestriction(Mob *caster, uint16 spell_id)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool check_for_restrictions = false;
|
||||||
|
bool can_cast = true;
|
||||||
|
|
||||||
// NON GM clients might be restricted by rule setting
|
// NON GM clients might be restricted by rule setting
|
||||||
if (caster->IsClient()) {
|
if (caster->IsClient()) {
|
||||||
if (IsClient()) { // Only restrict client on client for this rule
|
if (IsClient()) { // Only restrict client on client for this rule
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user