fix: Fixes stoneform spell (#1125)
This commit is contained in:
parent
fbf60b65a5
commit
84f1084e44
1 changed files with 4 additions and 5 deletions
|
|
@ -118,13 +118,16 @@ namespace Server.Spells.Mysticism
|
|||
Caster.PlaySound(0x65A);
|
||||
Caster.Delta(MobileDelta.Resistances);
|
||||
|
||||
var damageBonus = (int)((GetBaseSkill(Caster) + GetDamageSkill(Caster)) / 12.0);
|
||||
var resistCap = (int)((GetBaseSkill(Caster) + GetDamageSkill(Caster)) / 48.0);
|
||||
|
||||
BuffInfo.AddBuff(
|
||||
Caster,
|
||||
new BuffInfo(
|
||||
BuffIcon.StoneForm,
|
||||
1080145,
|
||||
1080146,
|
||||
$"-10\t-2\t{offset}\t{GetResistCapBonus(Caster)}\t{GetDIBonus(Caster)}",
|
||||
$"-10\t-2\t{offset}\t{resistCap}\t{damageBonus}",
|
||||
false
|
||||
)
|
||||
);
|
||||
|
|
@ -134,10 +137,6 @@ namespace Server.Spells.Mysticism
|
|||
FinishSequence();
|
||||
}
|
||||
|
||||
public static int GetDIBonus(Mobile m) => (int)((GetBaseSkill(m) + GetDamageSkill(m)) / 12.0);
|
||||
|
||||
public static int GetResistCapBonus(Mobile m) => (int)((GetBaseSkill(m) + GetDamageSkill(m)) / 48.0);
|
||||
|
||||
public static void RemoveEffects(Mobile m)
|
||||
{
|
||||
if (!_table.Remove(m, out var mods))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue