mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Fix for bard mana regen
This commit is contained in:
parent
e00c57bc47
commit
1deef77f07
@ -1,5 +1,7 @@
|
|||||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
== 11/09/2013 ==
|
||||||
|
Leere: Fixed Bard mana regen, they now only are affected by items and AA.
|
||||||
|
|
||||||
== 11/07/2013 ==
|
== 11/07/2013 ==
|
||||||
KLS: Added a system to use the BaseData system in the client.
|
KLS: Added a system to use the BaseData system in the client.
|
||||||
|
|||||||
@ -1188,6 +1188,7 @@ void Mob::CalcSpellBonuses(StatBonuses* newbon)
|
|||||||
}
|
}
|
||||||
//this prolly suffer from roundoff error slightly...
|
//this prolly suffer from roundoff error slightly...
|
||||||
newbon->AC = newbon->AC * 10 / 34; //ratio determined impirically from client.
|
newbon->AC = newbon->AC * 10 / 34; //ratio determined impirically from client.
|
||||||
|
if (GetClass() == BARD) newbon->ManaRegen = 0; // Bards do not get mana regen from spells.
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* newbon, uint16 casterId, bool item_bonus, uint32 ticsremaining, int buffslot)
|
void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* newbon, uint16 casterId, bool item_bonus, uint32 ticsremaining, int buffslot)
|
||||||
|
|||||||
@ -325,6 +325,9 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
|||||||
|
|
||||||
case SE_CurrentMana:
|
case SE_CurrentMana:
|
||||||
{
|
{
|
||||||
|
// Bards don't get mana from effects, good or bad.
|
||||||
|
if(GetClass() == BARD)
|
||||||
|
break;
|
||||||
if(IsManaTapSpell(spell_id)) {
|
if(IsManaTapSpell(spell_id)) {
|
||||||
if(GetCasterClass() != 'N') {
|
if(GetCasterClass() != 'N') {
|
||||||
#ifdef SPELL_EFFECT_SPAM
|
#ifdef SPELL_EFFECT_SPAM
|
||||||
@ -352,6 +355,9 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
|||||||
|
|
||||||
case SE_CurrentManaOnce:
|
case SE_CurrentManaOnce:
|
||||||
{
|
{
|
||||||
|
// Bards don't get mana from effects, good or bad.
|
||||||
|
if(GetClass() == BARD)
|
||||||
|
break;
|
||||||
#ifdef SPELL_EFFECT_SPAM
|
#ifdef SPELL_EFFECT_SPAM
|
||||||
snprintf(effect_desc, _EDLEN, "Current Mana Once: %+i", effect_value);
|
snprintf(effect_desc, _EDLEN, "Current Mana Once: %+i", effect_value);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user