Fixes chaos damage bug with the spell system. Fixes various small other bugs. Fixes more merge cast type checks and uses default values.
This commit is contained in:
parent
9542c79ea4
commit
c155c82325
115 changed files with 644 additions and 1041 deletions
|
|
@ -28,13 +28,13 @@ namespace Server.Spells.Spellweaving
|
|||
Mobile caster = Caster;
|
||||
|
||||
// This is done after casting completes
|
||||
if (caster is PlayerMobile)
|
||||
if (caster is PlayerMobile mobile)
|
||||
{
|
||||
MLQuestContext context = MLQuestSystem.GetContext((PlayerMobile)caster);
|
||||
MLQuestContext context = MLQuestSystem.GetContext(mobile);
|
||||
|
||||
if (context == null || !context.SummonFiend)
|
||||
{
|
||||
caster.SendLocalizedMessage(1074564); // You haven't demonstrated mastery to summon a fiend.
|
||||
mobile.SendLocalizedMessage(1074564); // You haven't demonstrated mastery to summon a fiend.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue