mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 19:52:17 +00:00
Update to SE_BalanaceMana, SE_BalanceHP to support limit value which caps max mana/hp that can be taken per player.
This commit is contained in:
1 parent
41b190930f
commit
58175a5442
7 files changed
+47
-21
No files matched your search
@@ -2393,7 +2393,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
||||
gid = r->GetGroup(caster->GetName());
|
||||
if(gid < 11)
|
||||
{
|
||||
r->BalanceHP(spell.base[i], gid, spell.range, caster);
|
||||
r->BalanceHP(spell.base[i], gid, spell.range, caster, spell.base2[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2403,7 +2403,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
||||
if(!g)
|
||||
break;
|
||||
|
||||
g->BalanceHP(spell.base[i], spell.range, caster);
|
||||
g->BalanceHP(spell.base[i], spell.range, caster, spell.base2[i]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2421,7 +2421,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
||||
gid = r->GetGroup(caster->GetName());
|
||||
if(gid < 11)
|
||||
{
|
||||
r->BalanceMana(spell.base[i], gid, spell.range, caster);
|
||||
r->BalanceMana(spell.base[i], gid, spell.range, caster, spell.base2[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2431,7 +2431,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
||||
if(!g)
|
||||
break;
|
||||
|
||||
g->BalanceMana(spell.base[i], spell.range, caster);
|
||||
g->BalanceMana(spell.base[i], spell.range, caster, spell.base2[i]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user