fix: Fixes stoneform spell (#1125)

This commit is contained in:
Kamron Batman 2022-07-17 07:40:43 -07:00 committed by GitHub
parent fbf60b65a5
commit 84f1084e44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))