fix(core): Fixes OPL with stale header (#651)

- [X] FIxes stale header/header args

Closes #650 
Closes #607
This commit is contained in:
Kamron Batman 2021-06-11 23:44:05 -07:00 • committed by GitHub
parent 510d2e006b
commit 61c49b8faa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 11 deletions

View file

@ -38,9 +38,7 @@ namespace Server.SkillHandlers
public static bool CheckMastery(Mobile tamer, BaseCreature creature) =>
SummonFamiliarSpell.Table.TryGetValue(tamer, out var bc) && bc is DarkWolfFamiliar familiar &&
!familiar.Deleted && (creature is DireWolf || creature is GreyWolf || creature is TimberWolf ||
creature is WhiteWolf ||
creature is BakeKitsune);
!familiar.Deleted && creature is DireWolf or GreyWolf or TimberWolf or WhiteWolf or BakeKitsune;
public static bool MustBeSubdued(BaseCreature bc) =>
bc.Owners.Count <= 0 && bc.SubdueBeforeTame && bc.Hits > bc.HitsMax / 10;
@ -115,13 +113,13 @@ namespace Server.SkillHandlers
{
from.RevealingAction();
if (!(targeted is Mobile mobile))
if (targeted is not Mobile mobile)
{
from.SendLocalizedMessage(502801); // You can't tame that!
return;
}
if (!(mobile is BaseCreature creature))
if (mobile is not BaseCreature creature)
{
mobile.PrivateOverheadMessage(
MessageType.Regular,