diff options
| author | Destalker <none@none> | 2009-07-11 21:32:41 +0200 |
|---|---|---|
| committer | Destalker <none@none> | 2009-07-11 21:32:41 +0200 |
| commit | ff7a90db5f8503bbc177f33bbc6221b3dd56bf37 (patch) | |
| tree | 8ef39ae12bde61e5fc48877c472e04fc26c16a5e /src | |
| parent | 84644b764412fcf36bd3014fc290b7de5f22f863 (diff) | |
*Allow Illumination to proc on Holy Shock.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/GameObject.cpp | 1 | ||||
| -rw-r--r-- | src/game/SpellHandler.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 9afe4aa35f7..9bc9b1d44e0 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -490,6 +490,7 @@ void GameObject::AddUniqueUse(Player* player) void GameObject::Delete() { + assert (!GetOwnerGUID()); SendObjectDeSpawnAnim(GetGUID()); SetGoState(GO_STATE_READY); diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp index 0e9261598a8..74313eaa38b 100644 --- a/src/game/SpellHandler.cpp +++ b/src/game/SpellHandler.cpp @@ -359,7 +359,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket) } Spell *spell = new Spell(mover, spellInfo, false); - spell->m_cast_count = ++cast_count; // set count of casts + spell->m_cast_count = cast_count; // set count of casts spell->prepare(&targets); } |
