Show
Ignore:
Timestamp:
11/19/08 13:45:59 (17 years ago)
Author:
yumileroy
Message:

[svn] Send AttackStart? package when update visibility.
Update DoMeleeAttackIfReady? to support dual wield.
Show player modelid2 instead id3 of triggers. This should fix the bug that gameobject::castspell summon a human model.
Remove the correct flag to make creature attackable. This should fix the bug that Illidan and Magtheridon are unattackable.
Add NullCreatureAI for trinityscript.
Fix channeler's soul transfer.
Some update of black temple scripts.

Original author: megamage
Date: 2008-11-09 14:54:13-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Player.cpp

    r200 r203  
    1640716407            // send data at target visibility change (adding to client) 
    1640816408            if((*i)!=this && (*i)->isType(TYPEMASK_UNIT)) 
     16409            { 
    1640916410                SendAuraDurationsForTarget(*i); 
     16411                //if(((Unit*)(*i))->isAlive()) //should be always alive 
     16412                { 
     16413                    if((*i)->GetTypeId()==TYPEID_UNIT) 
     16414                        ((Creature*)(*i))->SendMonsterMoveWithSpeedToCurrentDestination(this); 
     16415                    if(((Unit*)(*i))->getVictim()) 
     16416                        ((Unit*)(*i))->SendAttackStart(((Unit*)(*i))->getVictim()); 
     16417                } 
     16418            } 
    1641016419 
    1641116420            i = stealthedUnits.erase(i); 
     
    1738717396            // send data at target visibility change (adding to client) 
    1738817397            if(target!=this && target->isType(TYPEMASK_UNIT)) 
     17398            { 
    1738917399                SendAuraDurationsForTarget((Unit*)target); 
    17390  
    17391             if(target->GetTypeId()==TYPEID_UNIT && ((Creature*)target)->isAlive()) 
    17392                 ((Creature*)target)->SendMonsterMoveWithSpeedToCurrentDestination(this); 
     17400                if(((Unit*)target)->isAlive()) 
     17401                { 
     17402                    if(target->GetTypeId()==TYPEID_UNIT) 
     17403                        ((Creature*)target)->SendMonsterMoveWithSpeedToCurrentDestination(this); 
     17404                    if(((Unit*)target)->getVictim()) 
     17405                        ((Unit*)target)->SendAttackStart(((Unit*)target)->getVictim()); 
     17406                } 
     17407            } 
    1739317408        } 
    1739417409    }