Skip to content

Commit

Permalink
Merge pull request #364 from stridera/fix-roundhouse
Browse files Browse the repository at this point in the history
fixed roundhouse from crashing the game
  • Loading branch information
daedela authored Feb 14, 2024
2 parents f76dea8 + 396dfef commit a5b127f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/act.offensive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@ ACMD(do_disarm) {
}

ACMD(do_hitall) {
CharData *mob, *next_mob, *orig_target;
CharData *mob, *next_mob, *orig_target = nullptr;
byte percent;
bool hit_all = false, realvictims = false, success = false;

Expand Down Expand Up @@ -3098,7 +3098,7 @@ ACMD(do_tripup) {
}

ACMD(do_roundhouse) {
CharData *mob, *next_mob, *orig_target;
CharData *mob, *next_mob, *orig_target = nullptr;
byte percent;
bool kick_all = false, realvictims = false, success = false;

Expand Down Expand Up @@ -3143,7 +3143,7 @@ ACMD(do_roundhouse) {
if (!area_attack_target(ch, mob))
continue;

/* If I just entered plain "hitall", don't attack bystanders who aren't
/* If I just entered plain "roundhouse", don't attack bystanders who aren't
* aggro to me */
if (!battling_my_group(ch, mob) && !kick_all && !is_aggr_to(mob, ch))
continue;
Expand All @@ -3153,13 +3153,13 @@ ACMD(do_roundhouse) {

if (success) {
if (mob != orig_target)
do_kick(ch, GET_NAME(mob), 0, SKILL_ROUNDHOUSE);
do_kick(ch, GET_NAMELIST(mob), 0, SKILL_ROUNDHOUSE);
}
}

if (success) {
if (orig_target)
do_kick(ch, GET_NAME(orig_target), 0, SKILL_ROUNDHOUSE);
do_kick(ch, GET_NAMELIST(orig_target), 0, SKILL_ROUNDHOUSE);
}

if (realvictims)
Expand Down

0 comments on commit a5b127f

Please sign in to comment.