mirror of
https://github.com/OregonCore/OregonCore
synced 2026-08-18 00:23:08 -04:00
Core/Commands: Fix .cheat god command letting you die
author: jackpoz @ tc
This commit is contained in:
parent
fe908c6a20
commit
0cebc5bbba
1 changed files with 2 additions and 2 deletions
|
|
@ -931,10 +931,10 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
|
|||
else if (IsAIEnabled)
|
||||
ToCreature()->AI()->DamageDealt(victim, damage, damagetype);
|
||||
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER && this != victim)
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
// Signal to pets that their owner was attacked - except when DOT.
|
||||
if (damagetype != DOT)
|
||||
if (this != victim && damagetype != DOT)
|
||||
{
|
||||
Pet* pet = victim->ToPlayer()->GetPet();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue