- Timestamp:
- 11/19/08 13:45:43 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/PetHandler.cpp
r191 r200 79 79 { 80 80 case ACT_COMMAND: //0x0700 81 // Possessed pets are only able to attack 82 if (pet->isPossessed() && spellid != COMMAND_ATTACK) 83 return; 84 81 85 switch(spellid) 82 86 { -
trunk/src/game/Player.cpp
r193 r200 18765 18765 { 18766 18766 target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE); 18767 // Reinitialize the pet bar and make the pet come back to the owner 18767 18768 if(((Creature*)target)->isPet()) 18769 { 18768 18770 PetSpellInitialize(); 18771 if (!target->getVictim()) 18772 { 18773 target->GetMotionMaster()->MoveFollow(this, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE); 18774 target->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW); 18775 } 18776 } 18769 18777 else if (target->isAlive()) 18770 18778 { -
trunk/src/game/PossessedAI.cpp
r186 r200 25 25 void PossessedAI::AttackStart(Unit *u) 26 26 { 27 if( i_pet.getVictim() ||!u )27 if( !u ) 28 28 return; 29 30 if (i_pet.getVictim() && u != i_pet.getVictim()) 31 i_pet.AttackStop(); 29 32 30 33 if(i_pet.Attack(u, true)) -
trunk/src/game/SpellHandler.cpp
r174 r200 353 353 return; 354 354 355 // Remove possess aura from the possessed as well 356 if(_player->isPossessing()) 355 // Remove possess/charm aura from the possessed/charmed as well 356 // TODO: Remove this once the ability to cancel aura sets at once is implemented 357 if(_player->GetCharm()) 357 358 { 358 359 for (int i = 0; i < 3; ++i) 359 360 { 360 361 if (spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS || 361 spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS_PET) 362 spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_POSSESS_PET || 363 spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_CHARM) 362 364 { 363 365 _player->RemoveAurasDueToSpellByCancel(spellId);