Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: player summon lasthit addUnjustifiedKills #3256

Merged
merged 3 commits into from
Jan 25, 2025

Conversation

dudantas
Copy link
Member

Description

This PR addresses an issue where unjustified kills were not being properly activated when the last hit on a player was caused by a summon. The issue occurred because the master of the summon was not being correctly treated as responsible for the kill in certain scenarios. This fix ensures that the master of the summon is correctly identified and unjustified kills are processed appropriately.

Behaviour

Actual

When a summon delivers the last hit to a player:

  • The master's unjustified kills are not activated.
  • The system fails to recognize the master's involvement.

Expected

When a summon delivers the last hit to a player:

  • The master should be treated as responsible for the kill.
  • Unjustified kills should be processed correctly for the master.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

The following tests were performed to ensure the correctness of the fix:

  • Test A: A summon delivers the last hit to a player in a PvP scenario. Verified that the master's unjustified kills were correctly activated.
  • Test B: A player directly delivers the last hit to a player. Verified that the behaviour remained consistent.
  • Test C: A summon and its master both participate in damaging the target, with the summon delivering the last hit. Verified that the master was treated as responsible.

Test Configuration:

  • Server Version: Canary
  • Client: Tibia Client
  • Operating System: Linux / Windows

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

@dudantas dudantas changed the title fix: summon lasthit addUnjustifiedKills fix: player summon lasthit addUnjustifiedKills Jan 19, 2025
@majestyotbr majestyotbr merged commit 6127fbf into main Jan 25, 2025
34 checks passed
@majestyotbr majestyotbr deleted the dudantas/fix-summon-lasthit branch January 25, 2025 17:46
vllworldbuilding pushed a commit to vllworldbuilding/canary that referenced this pull request Jan 31, 2025
This addresses an issue where unjustified kills were not being properly activated when the last hit on a player was caused by a summon.
The issue occurred because the master of the summon was not being correctly treated as responsible for the kill in certain scenarios. 
This fix ensures that the master of the summon is correctly identified and unjustified kills are processed appropriately.
lucas-caminha pushed a commit to lucas-caminha/canary that referenced this pull request Feb 10, 2025
This addresses an issue where unjustified kills were not being properly activated when the last hit on a player was caused by a summon.
The issue occurred because the master of the summon was not being correctly treated as responsible for the kill in certain scenarios. 
This fix ensures that the master of the summon is correctly identified and unjustified kills are processed appropriately.
Gabirot pushed a commit to Gabirot/canary that referenced this pull request Feb 10, 2025
This addresses an issue where unjustified kills were not being properly activated when the last hit on a player was caused by a summon.
The issue occurred because the master of the summon was not being correctly treated as responsible for the kill in certain scenarios. 
This fix ensures that the master of the summon is correctly identified and unjustified kills are processed appropriately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants