From a3e03f62d04b45aa2e75040ed3b582cdc8da61a9 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 18 Oct 2008 11:50:02 -0500 Subject: [svn] Remove unused script event functions HealBy and DamageDeal. Add new function SpellHitTarget. Fix a bug in r57_trinity.sql. --HG-- branch : trunk --- src/game/Unit.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 763ae5daf4c..472afbcba4a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -477,9 +477,6 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa pVictim->SetStandState(PLAYER_STATE_NONE); } - //Script Event damage Deal - if( GetTypeId()== TYPEID_UNIT && ((Creature *)this)->AI()) - ((Creature *)this)->AI()->DamageDeal(pVictim, damage); //Script Event damage taken if( pVictim->GetTypeId()== TYPEID_UNIT && ((Creature *)pVictim)->AI() ) ((Creature *)pVictim)->AI()->DamageTaken(this, damage); -- cgit v1.2.3