Core/Scripts: fix a crash from e0997874f5
This commit is contained in:
@@ -224,7 +224,7 @@ bool SpellScript::TargetHook::CheckEffect(SpellInfo const* spellEntry, uint8 eff
|
|||||||
spellEntry->Effects[effIndex].TargetB.GetTarget() != targetType)
|
spellEntry->Effects[effIndex].TargetB.GetTarget() != targetType)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SpellImplicitTargetInfo targetType(targetType);
|
SpellImplicitTargetInfo targetType(this->targetType);
|
||||||
switch (targetType.GetSelectionCategory())
|
switch (targetType.GetSelectionCategory())
|
||||||
{
|
{
|
||||||
case TARGET_SELECT_CATEGORY_CHANNEL: // SINGLE
|
case TARGET_SELECT_CATEGORY_CHANNEL: // SINGLE
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ class SpellScript : public _SpellScript
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area);
|
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area);
|
||||||
bool CheckEffect(SpellInfo const* spellEntry, uint8 targetType);
|
bool CheckEffect(SpellInfo const* spellEntry, uint8 effIndex);
|
||||||
std::string ToString();
|
std::string ToString();
|
||||||
protected:
|
protected:
|
||||||
uint16 targetType;
|
uint16 targetType;
|
||||||
|
|||||||
Reference in New Issue
Block a user