Weapons allow NPCs to facestab

This commit is contained in:
Michael Cook (mackal) committed 2017-01-31 17:25:05 -05:00
1 parent da9792160d
commit d8519bc270
4 files changed
+9 -3

No files matched your search

+2 -2
View File
@@ -528,8 +528,8 @@ void Mob::TryBackstab(Mob *other, int ReuseTime) {
bCanFrontalBS = true;
}
if (bIsBehind || bCanFrontalBS){ // Player is behind other OR can do Frontal Backstab
if (bCanFrontalBS)
if (bIsBehind || bCanFrontalBS || (IsNPC() && CanFacestab())) { // Player is behind other OR can do Frontal Backstab
if (bCanFrontalBS && IsClient()) // I don't think there is any message ...
CastToClient()->Message(0,"Your fierce attack is executed with such grace, your target did not see it coming!");
RogueBackstab(other,false,ReuseTime);