*add 11 new event hooks to the OnEvents system, by Hawthorne

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-09-23 20:19:21 -07:00
1 parent 8102372a67
commit 906b00465a
16 files changed
+319 -6

No files matched your search

+7 -1
View File
@@ -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)