fix: Updates disguises and codegens tinkering items (#1353)

This commit is contained in:
Kamron Batman 2023-02-25 12:01:06 -08:00 • committed by GitHub
parent f2fdc0321c
commit d14e864c85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 1012 additions and 1454 deletions

View file

@ -1204,7 +1204,7 @@ namespace Server.Spells
{
caster.SendLocalizedMessage(1061628); // You can't do that while polymorphed.
}
else if (DisguiseTimers.IsDisguised(caster))
else if (DisguisePersistence.IsDisguised(caster))
{
caster.SendLocalizedMessage(1061631); // You can't do that while disguised.
return false;

View file

@ -70,7 +70,7 @@ namespace Server.Spells.Fifth
return;
}
if (DisguiseTimers.IsDisguised(Caster))
if (DisguisePersistence.IsDisguised(Caster))
{
Caster.SendLocalizedMessage(1061631); // You can't do that while disguised.
return;
@ -86,7 +86,7 @@ namespace Server.Spells.Fifth
{
if (Caster.BeginAction<IncognitoSpell>())
{
DisguiseTimers.StopTimer(Caster);
DisguisePersistence.StopTimer(Caster);
Caster.HueMod = Caster.Race.RandomSkinHue();
Caster.NameMod = Caster.Female ? NameList.RandomName("female") : NameList.RandomName("male");

View file

@ -89,7 +89,7 @@ namespace Server.Spells.Ninjitsu
return false;
}
if (DisguiseTimers.IsDisguised(Caster))
if (DisguisePersistence.IsDisguised(Caster))
{
Caster.SendLocalizedMessage(1061631); // You can't do that while disguised.
return false;

View file

@ -49,7 +49,7 @@ namespace Server.Spells.Seventh
return false;
}
if (DisguiseTimers.IsDisguised(caster))
if (DisguisePersistence.IsDisguised(caster))
{
caster.SendLocalizedMessage(502167); // You cannot polymorph while disguised.
return false;
@ -122,7 +122,7 @@ namespace Server.Spells.Seventh
return;
}
if (DisguiseTimers.IsDisguised(caster))
if (DisguisePersistence.IsDisguised(caster))
{
caster.SendLocalizedMessage(502167); // You cannot polymorph while disguised.
return;