Skip to content

Commit

Permalink
removed taunt / redirect from commence_attack
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsndk committed Jul 27, 2024
1 parent 123beb7 commit 9653380
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2959,21 +2959,6 @@ function commence_attack(attacker, target, atype, { projectile, chained, targets
return { failed: true, reason: "friendly", place: atype, id: target.id };
}

// TODO: this belongs in complete attack
if (redirect) {
const targetsTarget = get_player(target.target);
if (
target.is_monster &&
target.target &&
target.target !== attacker.name &&
targetsTarget &&
is_same(attacker, targetsTarget, 1) // checks party / account and such
) {
stop_pursuit(target, { redirect: true, cause: `${atype} redirect` });
target_player(target, attacker);
}
}

direction_logic(attacker, target);

if (mp_cost && attacker.first && !attacker.is_npc) {
Expand Down

0 comments on commit 9653380

Please sign in to comment.