mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
Update spell_effects.cpp
This commit is contained in:
parent
b70dc64d96
commit
f1d267bb2d
@ -1077,7 +1077,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
caster->MessageString(Chat::SpellFailure, SPELL_NO_EFFECT, spells[spell_id].name);
|
caster->MessageString(Chat::SpellFailure, SPELL_NO_EFFECT, spells[spell_id].name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int chance = spells[spell_id].base[i] - 20; //Baseline 2% negative modifer derived from parsing.
|
/*
|
||||||
|
TODO: Parsing shows there is no level modifier. However, a consistent -2% modifer was
|
||||||
|
found on spell with value 950 (95% spells would have 7% failure rates).
|
||||||
|
Further investigation is needed. ~ Kayen
|
||||||
|
*/
|
||||||
|
int chance = spells[spell_id].base[i];
|
||||||
int buff_count = GetMaxTotalSlots();
|
int buff_count = GetMaxTotalSlots();
|
||||||
for(int slot = 0; slot < buff_count; slot++) {
|
for(int slot = 0; slot < buff_count; slot++) {
|
||||||
if (buffs[slot].spellid != SPELL_UNKNOWN &&
|
if (buffs[slot].spellid != SPELL_UNKNOWN &&
|
||||||
@ -1103,7 +1108,8 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
caster->MessageString(Chat::SpellFailure, SPELL_NO_EFFECT, spells[spell_id].name);
|
caster->MessageString(Chat::SpellFailure, SPELL_NO_EFFECT, spells[spell_id].name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int chance = spells[spell_id].base[i] - 20; //Baseline 2% negative modifer derived from parsing.
|
|
||||||
|
int chance = spells[spell_id].base[i];
|
||||||
int buff_count = GetMaxTotalSlots();
|
int buff_count = GetMaxTotalSlots();
|
||||||
for(int slot = 0; slot < buff_count; slot++) {
|
for(int slot = 0; slot < buff_count; slot++) {
|
||||||
if (buffs[slot].spellid != SPELL_UNKNOWN &&
|
if (buffs[slot].spellid != SPELL_UNKNOWN &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user