Changeset 186 for trunk/src/game/Spell.cpp
- Timestamp:
- 11/19/08 13:44:25 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Spell.cpp
r185 r186 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 1006 1006 { 1007 1007 //do not remove feign death 1008 unit->Remove InterruptableAura(AURA_INTERRUPT_FLAG_STEALTH + AURA_INTERRUPT_FLAG_DAMAGE);1008 unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH + AURA_INTERRUPT_FLAG_DAMAGE); 1009 1009 } 1010 1010 } … … 2148 2148 if ( !m_IsTriggeredSpell && isSpellBreakStealth(m_spellInfo) ) 2149 2149 { 2150 m_caster->Remove InterruptableAura(AURA_INTERRUPT_FLAG_STEALTH);2150 m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH); 2151 2151 } 2152 2152 … … 2207 2207 { 2208 2208 SetExecutedCurrently(true); 2209 2209 2210 2210 uint8 castResult = 0; 2211 2211 … … 2322 2322 handle_immediate(); 2323 2323 } 2324 2324 2325 2325 SetExecutedCurrently(false); 2326 2326 } … … 3083 3083 WorldObject* target = NULL; 3084 3084 3085 // select first not r susted target from target list for _0_ effect3085 // select first not resisted target from target list for _0_ effect 3086 3086 if(!m_UniqueTargetInfo.empty()) 3087 3087 { … … 3341 3341 for(TriggerSpells::iterator si=m_TriggerSpells.begin(); si!=m_TriggerSpells.end(); ++si) 3342 3342 { 3343 Spell* spell = new Spell(m_caster, (*si), true, m_originalCasterGUID, this->m_selfContainer);3343 Spell* spell = new Spell(m_caster, (*si), true, m_originalCasterGUID, m_selfContainer); 3344 3344 spell->prepare(&m_targets); // use original spell original targets 3345 3345 } … … 3398 3398 if(m_spellInfo->TargetAuraStateNot && target->HasAuraState(AuraState(m_spellInfo->TargetAuraStateNot))) 3399 3399 return SPELL_FAILED_TARGET_AURASTATE; 3400 3401 3400 3402 3401 if(target != m_caster) … … 4077 4076 return SPELL_FAILED_CASTER_DEAD; 4078 4077 4079 if(m_caster->IsNonMeleeSpellCasted(false)) //prevent spellcast inter uption by another spellcast4078 if(m_caster->IsNonMeleeSpellCasted(false)) //prevent spellcast interruption by another spellcast 4080 4079 return SPELL_FAILED_SPELL_IN_PROGRESS; 4081 4080 if(m_caster->isInCombat() && IsNonCombatSpell(m_spellInfo)) … … 4169 4168 dispel_immune |= GetDispellMask(DispelType(m_spellInfo->EffectMiscValue[i])); 4170 4169 } 4171 //immune movement impair ement and loss of control4170 //immune movement impairment and loss of control 4172 4171 if(m_spellInfo->Id==(uint32)42292) 4173 4172 mechanic_immune = IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK; … … 4651 4650 4652 4651 uint32 item_quality = itemProto->Quality; 4653 // 2.0.x addon: Check player enchanting level agains the item desenchanting requirements4652 // 2.0.x addon: Check player enchanting level against the item disenchanting requirements 4654 4653 uint32 item_disenchantskilllevel = itemProto->RequiredDisenchantSkill; 4655 4654 if (item_disenchantskilllevel == uint32(-1))