*add 11 new event hooks to the OnEvents system, by Hawthorne
--HG-- branch : trunk
This commit is contained in:
1 parent
8102372a67
commit
906b00465a
16 files changed
+319
-6
No files matched your search
+7
-1
@@ -785,7 +785,13 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
|
||||
{
|
||||
Player *killer = ((Player*)this);
|
||||
Player *killed = ((Player*)pVictim);
|
||||
Script->OnPVPKill(killer, killed);
|
||||
killer->GetSession()->HandleOnPVPKill(killed);
|
||||
}
|
||||
if (pVictim->GetTypeId() == TYPEID_UNIT && this->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
Player *killer = ((Player*)this);
|
||||
Creature *pCreature = ((Creature*)pVictim);
|
||||
killer->GetSession()->HandleOnCreatureKill(pCreature);
|
||||
}
|
||||
}
|
||||
else // if (health <= damage)
|
||||
|
||||
Reference in new issue
Block a user