Merge pull request #32 from Iceee/master

Fix fight.direction: pass the attackers location to the loop check.
This commit is contained in:
asofold 2015-01-30 21:50:29 +01:00
commit c0de7d0306

View File

@ -362,7 +362,7 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
} }
// TODO: Efficiency: don't check at all, if strict and !thisPassed. // TODO: Efficiency: don't check at all, if strict and !thisPassed.
if (directionEnabled && (reachPassed || !directionPassed)) { if (directionEnabled && (reachPassed || !directionPassed)) {
if (direction.loopCheck(player, damagedLoc, damaged, entry, directionContext, data, cc)) { if (direction.loopCheck(player, loc, damaged, entry, directionContext, data, cc)) {
thisPassed = false; thisPassed = false;
} else { } else {
directionPassed = true; directionPassed = true;