Skip to content

Commit

Permalink
Update events.js
Browse files Browse the repository at this point in the history
- Add a check so that artifacts that are picked up don't try to place another artifact.
  • Loading branch information
DARwins1 committed Aug 14, 2024
1 parent 9d12df8 commit 5c6b398
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/campaign/libcampaign_includes/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ function cam_eventStructureBuilt(struct, droid)

function cam_eventDestroyed(obj)
{
if (obj.type === FEATURE && obj.stattype === ARTIFACT)
{
return;
}
__camCheckPlaceArtifact(obj);
if (obj.type === DROID)
{
Expand Down

0 comments on commit 5c6b398

Please sign in to comment.