Core/Spells: Fixed target selection hooks running twice for each effect if both target A and B were using the same hook type (OnObjectAreaTargetSelect, OnObjectTargetSelect, OnDestinationTargetSelect)

This commit is contained in:
Shauren committed 2014-03-22 21:39:38 +01:00
1 parent 3c16c63293
commit 3a1a55bb0a
3 files changed
+26 -25

No files matched your search

+1
View File
@@ -208,6 +208,7 @@ class SpellScript : public _SpellScript
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area, bool _dest);
bool CheckEffect(SpellInfo const* spellInfo, uint8 effIndex);
std::string ToString();
uint16 GetTarget() const { return targetType; }
protected:
uint16 targetType;
bool area;