[8672] Fixed condition in prev. commit.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-10-18 19:32:17 +02:00
parent 0e1854a936
commit 3558829283
2 changed files with 2 additions and 3 deletions

View file

@ -4315,8 +4315,7 @@ SpellCastResult Spell::CheckCast(bool strict)
{
if (m_caster->GetTypeId() != TYPEID_PLAYER ||
!m_targets.getUnitTarget() ||
m_targets.getUnitTarget()->GetTypeId() == TYPEID_PLAYER ||
m_targets.getUnitTarget()->isPet())
m_targets.getUnitTarget()->GetTypeId() == TYPEID_PLAYER
return SPELL_FAILED_BAD_TARGETS;
Player* plrCaster = (Player*)m_caster;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8671"
#define REVISION_NR "8672"
#endif // __REVISION_NR_H__