Changeset 173 for trunk/src/game/Spell.cpp
- Timestamp:
- 11/19/08 13:43:02 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Spell.cpp
r168 r173 288 288 m_magnetPair.first = false; 289 289 m_magnetPair.second = NULL; 290 m_deletable = true; 290 m_referencedFromCurrentSpell = false; 291 m_executedCurrently = false; 291 292 m_delayAtDamageCount = 0; 292 293 … … 2202 2203 void Spell::cast(bool skipCheck) 2203 2204 { 2205 SetExecutedCurrently(true); 2206 2204 2207 uint8 castResult = 0; 2205 2208 … … 2211 2214 { 2212 2215 cancel(); 2216 SetExecutedCurrently(false); 2213 2217 return; 2214 2218 } … … 2222 2226 SendCastResult(castResult); 2223 2227 finish(false); 2228 SetExecutedCurrently(false); 2224 2229 return; 2225 2230 } … … 2233 2238 SendCastResult(castResult); 2234 2239 finish(false); 2240 SetExecutedCurrently(false); 2235 2241 return; 2236 2242 } … … 2278 2284 2279 2285 if(m_spellState == SPELL_STATE_FINISHED) // stop cast if spell marked as finish somewhere in Take*/FillTargetMap 2280 return; 2286 { 2287 SetExecutedCurrently(false); 2288 return; 2289 } 2281 2290 2282 2291 SendCastResult(castResult); … … 2310 2319 handle_immediate(); 2311 2320 } 2321 2322 SetExecutedCurrently(false); 2312 2323 } 2313 2324 … … 5127 5138 m_Spell->cancel(); 5128 5139 } 5140 5141 bool SpellEvent::IsDeletable() const 5142 { 5143 return m_Spell->IsDeletable(); 5144 }