mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Fixed a potential exploit where pvp-specific behaviors were being taken into account for PvM, resulting in potential non-halberd melee safespots
This commit is contained in:
parent
17ec82d852
commit
93f00462b9
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ abstract class CombatSwingHandler(var type: CombatStyle?) {
|
|||
entity.debug("Adjusting attack style")
|
||||
}
|
||||
if (entity.location == victim.location) {
|
||||
return if (entity.index < victim.index && victim.properties.combatPulse.getVictim() === entity) {
|
||||
return if (entity is Player && victim is Player && entity.clientIndex < victim.clientIndex && victim.properties.combatPulse.getVictim() === entity) {
|
||||
InteractionType.STILL_INTERACT
|
||||
} else InteractionType.NO_INTERACT
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue