fix: Fixes curses and spell effects (#1112)
* * Fix statmod naming mismatch: everything in code searches for "[Magic] {type} Offset" but stat reductions are being added as "[Magic] {type} Curse"
* Clarifies and cleans up curses
* Fixes blood oath
* * NobleSacrifice remove all curses in one go
* Dont need a method
* Fix extra parentheses
Co-authored-by: Kamron Batman <3953314+kamronbatman@users.noreply.github.com>
This commit is contained in:
parent
ad0e1702a3
commit
bd4e6fc30e
10 changed files with 126 additions and 126 deletions
|
|
@ -1817,12 +1817,18 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
public static void Debuff(Mobile mob)
|
||||
{
|
||||
mob.RemoveStatMod("[Magic] Str Offset");
|
||||
mob.RemoveStatMod("[Magic] Dex Offset");
|
||||
mob.RemoveStatMod("[Magic] Int Offset");
|
||||
mob.RemoveStatMod("[Magic] Str Buff");
|
||||
mob.RemoveStatMod("[Magic] Dex Buff");
|
||||
mob.RemoveStatMod("[Magic] Int Buff");
|
||||
mob.RemoveStatMod("[Magic] Str Curse");
|
||||
mob.RemoveStatMod("[Magic] Dex Curse");
|
||||
mob.RemoveStatMod("[Magic] Int Curse");
|
||||
mob.RemoveStatMod("Concussion");
|
||||
mob.RemoveStatMod("blood-rose");
|
||||
mob.RemoveStatMod("clarity-potion");
|
||||
mob.RemoveStatMod("RoseOfTrinsicPetal");
|
||||
mob.RemoveStatMod("Holy Bless");
|
||||
mob.RemoveStatMod("Holy Curse");
|
||||
|
||||
OrangePetals.RemoveContext(mob);
|
||||
|
||||
|
|
|
|||
|
|
@ -209,17 +209,8 @@ namespace Server.Factions
|
|||
return true;
|
||||
}
|
||||
|
||||
public int GetStatMod(Mobile mob, StatType type)
|
||||
{
|
||||
var mod = mob.GetStatMod($"[Magic] {type} Offset");
|
||||
|
||||
if (mod == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mod.Offset;
|
||||
}
|
||||
public static int GetStatMod(Mobile mob, StatType type) =>
|
||||
mob.GetStatMod($"[Magic] {type} Curse")?.Offset ?? 0;
|
||||
|
||||
public Spell RandomOffenseSpell()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue