For example:
Player A summons pet A and somehow reduces its HP close to 0.
Player B buffs Player C with Blazing Skin.
Pet A hits player C and player C becomes PK, but player A doesn`t enter PVP mode.
Imho, problem is in CCreature :: Die(CCreature* pEnemy) handler.
In case when in place of pet A there is player with hp close to 0 this bug doesn`t occur.
Interesting place in CCreature :: AttackedBy(pAttacker) handler, where reflect damage occures.
.text:0000000000517AE8 cmp byte ptr [rbx+78Bh], 0 ; flag of reflecting skill on this
(in runtime Amped hooks here to solve
another problem)
.text:0000000000517AEF ; ---------------------------------------------------------------------------
.text:0000000000517AEF jz short loc_517B23
.text:0000000000517AF1 cmp esi, 6
.text:0000000000517AF4 jz short loc_517B23
.text:0000000000517AF6 mov rax, [rdi]
.text:0000000000517AF9 movsd xmm2, xmm6
.text:0000000000517AFD mulsd xmm2, qword ptr [rbx+790h]
.text:0000000000517B05 subsd xmm2, xmm6
.text:0000000000517B09 mov byte ptr [rsp+98h+var_78], 1
.text:0000000000517B0E mov r9d, 4
.text:0000000000517B14 mov rdx, rbx ; this
.text:0000000000517B17 mov rcx, rdi ; pAttacker
.text:0000000000517B1A mov rax, [rax+5F8h]
.text:0000000000517B21
.text:0000000000517B21 loc_517B21: ; CODE XREF: CCreature__GotDamageByP
.text:0000000000517B21 call rax ; Attacker get reflect damage
Sorry for bad English :)
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам архивной страницы; её часовой пояс не установлен. Дата в снимке: 6th January 2008, 13:54. Открыть источник.