Changeset 213 for trunk/src/game/Spell.cpp
- Timestamp:
- 11/19/08 13:47:00 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Spell.cpp
r203 r213 957 957 unit->SetStandState(PLAYER_STATE_NONE); 958 958 959 if(!unit->isInCombat() && unit->GetTypeId() != TYPEID_PLAYER && ((Creature*)unit)->AI()) 960 ((Creature*)unit)->AI()->AttackStart(m_caster); 961 962 unit->SetInCombatWith(m_caster); 963 m_caster->SetInCombatWith(unit); 964 965 if(Player *attackedPlayer = unit->GetCharmerOrOwnerPlayerOrPlayerItself()) 966 m_caster->SetContestedPvP(attackedPlayer); 959 m_caster->CombatStart(unit); 967 960 } 968 961 } … … 1003 996 } 1004 997 1005 //if(!IsPositiveSpell(m_spellInfo->Id)) 1006 { 1007 //do not remove feign death 1008 unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH + AURA_INTERRUPT_FLAG_DAMAGE); 1009 } 998 unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_HITBYSPELL); 1010 999 } 1011 1000 else … … 2248 2237 if ( !m_IsTriggeredSpell && isSpellBreakStealth(m_spellInfo) ) 2249 2238 { 2250 m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_ STEALTH);2239 m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CAST); 2251 2240 } 2252 2241