Changeset 203 for trunk/src/game
- Timestamp:
- 11/19/08 13:45:59 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/GameObject.cpp
r146 r203 1283 1283 trigger->CastSpell(target, spell, true); 1284 1284 } 1285 } 1285 //trigger->setDeathState(JUST_DIED); 1286 //trigger->RemoveCorpse(); 1287 } -
trunk/src/game/Object.cpp
r178 r203 602 602 { 603 603 if(target->isGameMaster()) 604 *data << cinfo->Modelid1; 604 { 605 if(cinfo->Modelid2) 606 *data << cinfo->Modelid1; 607 else 608 *data << 17519; // world invisible trigger's model 609 } 605 610 else 606 *data << cinfo->Modelid3; 611 { 612 if(cinfo->Modelid2) 613 *data << cinfo->Modelid2; 614 else 615 *data << 11686; // world invisible trigger's model 616 } 607 617 } 608 618 else -
trunk/src/game/Player.cpp
r200 r203 16407 16407 // send data at target visibility change (adding to client) 16408 16408 if((*i)!=this && (*i)->isType(TYPEMASK_UNIT)) 16409 { 16409 16410 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 } 16410 16419 16411 16420 i = stealthedUnits.erase(i); … … 17387 17396 // send data at target visibility change (adding to client) 17388 17397 if(target!=this && target->isType(TYPEMASK_UNIT)) 17398 { 17389 17399 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 } 17393 17408 } 17394 17409 } -
trunk/src/game/Spell.cpp
r197 r203 1013 1013 // for delayed spells ignore negative spells (after duel end) for friendly targets 1014 1014 // TODO: this cause soul transfer bugged 1015 if(m_spellInfo->speed > 0.0f && !IsPositiveSpell(m_spellInfo->Id))1015 if(m_spellInfo->speed > 0.0f && unit->GetTypeId() == TYPEID_PLAYER && !IsPositiveSpell(m_spellInfo->Id)) 1016 1016 { 1017 1017 m_caster->SendSpellMiss(unit, m_spellInfo->Id, SPELL_MISS_EVADE); -
trunk/src/game/Unit.h
r186 r203 943 943 void DeMorph(); 944 944 945 void SendAttackStart(Unit* pVictim); 945 946 void SendAttackStateUpdate(uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount); 946 947 void SendSpellNonMeleeDamageLog(Unit *target,uint32 SpellID,uint32 Damage, SpellSchoolMask damageSchoolMask,uint32 AbsorbedDamage, uint32 Resist,bool PhysicalDamage, uint32 Blocked, bool CriticalHit = false); … … 1353 1354 private: 1354 1355 void SendAttackStop(Unit* victim); // only from AttackStop(Unit*) 1355 void SendAttackStart(Unit* pVictim); // only from Unit::AttackStart(Unit*)1356 //void SendAttackStart(Unit* pVictim); // only from Unit::AttackStart(Unit*) 1356 1357 1357 1358 void ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag, AuraTypeSet const& procAuraTypes, WeaponAttackType attType, SpellEntry const * procSpell, uint32 damage, SpellSchoolMask damageSchoolMask );