mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-11-14 05:05:10 -05:00
#116 - this.stop() + return;
This commit is contained in:
parent
18b63da356
commit
fc1444206b
@ -61,13 +61,15 @@ public class FightEvent extends DelayedEvent {
|
||||
public void run() {
|
||||
if(owner == null || affectedMob == null) {
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
if (!owner.loggedIn()
|
||||
|| (affectedMob instanceof Player && !((Player) affectedMob)
|
||||
.loggedIn())) {
|
||||
owner.resetCombat(CombatState.ERROR);
|
||||
affectedMob.resetCombat(CombatState.ERROR);
|
||||
this.stop();
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Mob attacker, opponent;
|
||||
@ -86,6 +88,7 @@ public class FightEvent extends DelayedEvent {
|
||||
n.resetCombat(CombatState.ERROR);
|
||||
owner.resetCombat(CombatState.ERROR);
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (opponent instanceof Npc) {
|
||||
@ -94,6 +97,7 @@ public class FightEvent extends DelayedEvent {
|
||||
n.resetCombat(CombatState.ERROR);
|
||||
owner.resetCombat(CombatState.ERROR);
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (opponent instanceof Player && attacker instanceof Player) {
|
||||
|
Loading…
Reference in New Issue
Block a user