Skip to content

Commit 910f913

Browse files
committed
Fix: force steed dismount if steed becomes hostile from the player wielding or wearing a bane artifact vs the steed.
Players aren't supposed to be able to stay on their steed if the steed becomes hostile. This caused a serious issue with someones game earlier today - they were riding a tame dragon, they put on dragonbane which made their steed hostile, but was still mounted. Went to use the travel command, and upon traveling, 'placing steed onto map, mstate:0, on Dlvl:16 ?' error occurred every tile they moved to. The steed escaped upstairs, but still thought the player was mounted. Game could not save properly and became corrupted, which forced a restore from an earlier backup. Thankfully an easy fix, but I'm surprised this behavior (forcing steed dismount) wasn't thought of from the get-go.
1 parent a5ff4bd commit 910f913

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/evilhack-changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -3449,4 +3449,6 @@ The following changes to date are:
34493449
whilst using thievery skill
34503450
- Fix: Draugr trying to read a spellbook and the spellbook is
34513451
destroyed while reading it
3452+
- Fix: force steed dismount if steed becomes hostile from the player
3453+
wielding or wearing a bane artifact vs the steed
34523454

src/allmain.c

+2
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ boolean resuming;
630630
} else if (mtmp->mpeaceful || mtmp->mtame) {
631631
setmangry(mtmp, FALSE);
632632
mtmp->mpeaceful = mtmp->mtame = 0;
633+
if (u.usteed)
634+
dismount_steed(DISMOUNT_THROWN);
633635
}
634636
}
635637
}

0 commit comments

Comments
 (0)