Skip to content

Commit

Permalink
Merge pull request #574 from MarcusViniciusSS/fix/summoncreatorspell
Browse files Browse the repository at this point in the history
add cast for IMonster
  • Loading branch information
caioavidal authored Feb 15, 2024
2 parents abfe767 + 23263b3 commit 61f924e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/extensions/Spells/Commands/SummonCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public override bool OnCast(ICombatActor actor, string words, out InvalidOperati
error = InvalidOperation.NotPossible;
if (Params?.Length == 0) return false;

var summon = CreatureFactory.Instance.CreateSummon(Params[0].ToString(), actor);
var summon = CreatureFactory.Instance.CreateSummon(Params[0].ToString(), actor as IMonster);
if (summon is null) return false;

var map = Map.Instance;
Expand Down

0 comments on commit 61f924e

Please sign in to comment.