fix(core): Fixes OPL with stale header (#651)
- [X] FIxes stale header/header args Closes #650 Closes #607
This commit is contained in:
parent
510d2e006b
commit
61c49b8faa
3 changed files with 10 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue