Skip to content

Commit

Permalink
Merge pull request #532 from ksylvie365/master
Browse files Browse the repository at this point in the history
Don't re-throw windrider if it didn't make it back.
  • Loading branch information
elunna authored Feb 18, 2024
2 parents 27c6305 + a03aeb6 commit 167b079
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dothrow.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ int shotlimit;
remove_worn_item(otmp, FALSE);
oldslot = obj->nobj;
}

// If was_thrown flag is set, the item is not in inventory
// and thus can't be thrown again. This largely matters
// for multishot, returnable projectiles like Windrider.
if (otmp->was_thrown) {
break;
}

freeinv(otmp);
throwit(otmp, wep_mask, twoweap, oldslot);
}
Expand Down

0 comments on commit 167b079

Please sign in to comment.