Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/GameLogic/PlayerActions/Skills/AreaSkillAttackAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ private async ValueTask PerformAutomaticHitsAsync(Player player, ushort extraTar
return;
}

// Skills that move attacker to target (e.g., Twisting Slash, Death Stab) require a weapon
if (skill.MovesToTarget && player.Inventory?.GetRandomOffensiveItem() is null)
{
return;
}

if (player.Attributes[Stats.AmmunitionConsumptionRate] > player.Attributes[Stats.AmmunitionAmount])
{
return;
Expand Down
1 change: 1 addition & 0 deletions src/Web/AdminPanel/Pages/EditConfigGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ private async Task OnCreateButtonClickAsync()
var modalType = typeof(ModalCreateNew<>).MakeGenericType(this.Type!);

parameters.Add(nameof(ModalCreateNew<object>.Item), newObject);
parameters.Add(nameof(ModalCreateNew<object>.PersistenceContext), creationContext);
var options = new ModalOptions
{
DisableBackgroundCancel = true,
Expand Down