fix: Fixes disarm, strangle, curse, summons, looting rights, creatures attacking, and items going to the floor (#1174)
* Fixes disarm * Fixes strangle not refreshing * Fixes curse not refreshing * Fixes 125% bonus to looting rights * Fixes mobs attacking each other, or not attacking each other * Fixes items dropping to the floor * Fixes protection spell * Fixes cure sending wrong message
This commit is contained in:
parent
906ec095b9
commit
060edaa76a
25 changed files with 127 additions and 112 deletions
|
|
@ -26,13 +26,13 @@ namespace Server.Spells.Second
|
|||
{
|
||||
SpellHelper.Turn(Caster, m);
|
||||
|
||||
SpellHelper.AddStatBonus(Caster, m, StatType.Dex);
|
||||
var length = SpellHelper.GetDuration(Caster, m);
|
||||
SpellHelper.AddStatBonus(Caster, m, StatType.Dex, length, false);
|
||||
|
||||
m.FixedParticles(0x375A, 10, 15, 5010, EffectLayer.Waist);
|
||||
m.PlaySound(0x1e7);
|
||||
|
||||
var percentage = (int)(SpellHelper.GetOffsetScalar(Caster, m, false) * 100);
|
||||
var length = SpellHelper.GetDuration(Caster, m);
|
||||
|
||||
BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.Agility, 1075841, length, m, percentage.ToString()));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ namespace Server.Spells.Second
|
|||
{
|
||||
SpellHelper.Turn(Caster, m);
|
||||
|
||||
SpellHelper.AddStatBonus(Caster, m, StatType.Int);
|
||||
var length = SpellHelper.GetDuration(Caster, m);
|
||||
SpellHelper.AddStatBonus(Caster, m, StatType.Int, length, false);
|
||||
|
||||
m.FixedParticles(0x375A, 10, 15, 5011, EffectLayer.Head);
|
||||
m.PlaySound(0x1EB);
|
||||
|
||||
var percentage = (int)(SpellHelper.GetOffsetScalar(Caster, m, false) * 100);
|
||||
var length = SpellHelper.GetDuration(Caster, m);
|
||||
|
||||
BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.Cunning, 1075843, length, m, percentage.ToString()));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ namespace Server.Spells.Second
|
|||
}
|
||||
else
|
||||
{
|
||||
m.SendLocalizedMessage(1010060); // You have failed to cure your target!
|
||||
Caster.SendLocalizedMessage(1010060); // You have failed to cure your target!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@ namespace Server.Spells.Second
|
|||
target.PlaySound(0x1E9);
|
||||
target.FixedParticles(0x375A, 9, 20, 5016, EffectLayer.Waist);
|
||||
|
||||
var physLoss = Math.Max(0, -15 + (int)(caster.Skills.Inscribe.Value / 20));
|
||||
var resistLoss = Math.Max(0, -35 + (int)(caster.Skills.Inscribe.Value / 20));
|
||||
var physLoss = -15 + (int)(caster.Skills.Inscribe.Value / 20);
|
||||
var resistLoss = -35 + (int)(caster.Skills.Inscribe.Value / 20);
|
||||
var physMod = new ResistanceMod(ResistanceType.Physical, physLoss);
|
||||
var resistMod = new DefaultSkillMod(SkillName.MagicResist, true, resistLoss);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ namespace Server.Spells.Second
|
|||
{
|
||||
SpellHelper.Turn(Caster, m);
|
||||
|
||||
SpellHelper.AddStatBonus(Caster, m, StatType.Str);
|
||||
var length = SpellHelper.GetDuration(Caster, m);
|
||||
SpellHelper.AddStatBonus(Caster, m, StatType.Str, length, false);
|
||||
|
||||
m.FixedParticles(0x375A, 10, 15, 5017, EffectLayer.Waist);
|
||||
m.PlaySound(0x1EE);
|
||||
|
||||
var percentage = (int)(SpellHelper.GetOffsetScalar(Caster, m, false) * 100);
|
||||
var length = SpellHelper.GetDuration(Caster, m);
|
||||
|
||||
BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.Strength, 1075845, length, m, percentage.ToString()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue