mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
* Change name of recently added scriptAI functions to better reflect purpose
* Fix typo in 3910_world.sql, spotted by irish --HG-- branch : trunk
This commit is contained in:
@@ -588,7 +588,6 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
|
||||
if(pVictim->GetTypeId() == TYPEID_UNIT && ((Creature*)pVictim)->IsAIEnabled)
|
||||
{
|
||||
((Creature*)pVictim)->AI()->DamageTaken(this, damage);
|
||||
((Creature*)pVictim)->AddDamageByPlayers(damage);
|
||||
}
|
||||
if (damagetype != NODAMAGE)
|
||||
{
|
||||
@@ -706,7 +705,7 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
|
||||
((Creature*)pVictim)->SetLootRecipient(this);
|
||||
|
||||
if(IsControlledByPlayer())
|
||||
((Creature*)pVictim)->AddDamageByPlayers(health < damage ? health : damage);
|
||||
((Creature*)pVictim)->LowerPlayerDamageReq(health < damage ? health : damage);
|
||||
}
|
||||
|
||||
if (health <= damage)
|
||||
|
||||
Reference in New Issue
Block a user