diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-03-19 11:44:04 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-03-19 11:44:04 +0100 |
| commit | cb33b050d9ccdfeb108b83a3dfb1f98ba99f5d02 (patch) | |
| tree | 85e17454e7250b6077eec378eb1dcca9a193db5d /src/server/scripts/Spells | |
| parent | c5bf4f06ae3dc22a3e0a3160885d4815c9b716b3 (diff) | |
Scripts/Icecrown Citadel: Compile warning fixes
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 013a635b8ad..b45038e52a1 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -27,7 +27,7 @@ class spell_generic_quest_update_entry_SpellScript : public SpellScript { PrepareSpellScript(spell_generic_quest_update_entry_SpellScript) private: - uint32 _spellEffect; + uint16 _spellEffect; uint8 _effIndex; uint32 _originalEntry; uint32 _newEntry; @@ -35,21 +35,21 @@ private: uint32 _despawnTime; public: - spell_generic_quest_update_entry_SpellScript(uint32 spellEffect, uint8 effIndex, uint32 originalEntry, uint32 newEntry, bool shouldAttack, uint32 despawnTime = 0) : + spell_generic_quest_update_entry_SpellScript(uint16 spellEffect, uint8 effIndex, uint32 originalEntry, uint32 newEntry, bool shouldAttack, uint32 despawnTime = 0) : SpellScript(), _spellEffect(spellEffect), _effIndex(effIndex), _originalEntry(originalEntry), _newEntry(newEntry), _shouldAttack(shouldAttack), _despawnTime(despawnTime) { } void HandleDummy(SpellEffIndex /*effIndex*/) { - if (Creature* pCreatureTarget = GetHitCreature()) - if (!pCreatureTarget->isPet() && pCreatureTarget->GetEntry() == _originalEntry) + if (Creature* creatureTarget = GetHitCreature()) + if (!creatureTarget->isPet() && creatureTarget->GetEntry() == _originalEntry) { - pCreatureTarget->UpdateEntry(_newEntry); - if (_shouldAttack && pCreatureTarget->IsAIEnabled) - pCreatureTarget->AI()->AttackStart(GetCaster()); + creatureTarget->UpdateEntry(_newEntry); + if (_shouldAttack && creatureTarget->IsAIEnabled) + creatureTarget->AI()->AttackStart(GetCaster()); if (_despawnTime) - pCreatureTarget->DespawnOrUnsummon(_despawnTime); + creatureTarget->DespawnOrUnsummon(_despawnTime); } } @@ -756,6 +756,7 @@ class spell_q10041_q10040_who_are_they : public SpellScriptLoader void HandleScript(SpellEffIndex effIndex) { + PreventHitDefaultEffect(effIndex); if (!GetHitUnit() || !GetHitUnit()->ToPlayer()) return; |
