*Fix a typo breaking some summon types.
--HG-- branch : trunk
This commit is contained in:
@@ -3281,8 +3281,10 @@ void Spell::EffectSummonType(uint32 i)
|
||||
{
|
||||
default:
|
||||
if (properties->Flags & 512)
|
||||
{
|
||||
SummonGuardian(entry, properties);
|
||||
break;
|
||||
}
|
||||
switch(properties->Type)
|
||||
{
|
||||
case SUMMON_TYPE_PET:
|
||||
|
||||
+1
-1
@@ -219,7 +219,7 @@ void Unit::Update( uint32 p_time )
|
||||
SendThreatListUpdate();
|
||||
|
||||
// update combat timer only for players and pets (only pets with PetAI)
|
||||
if (isInCombat() && (GetTypeId() == TYPEID_PLAYER || (((Creature *)this)->isPet()) && IsControlledByPlayer()))
|
||||
if (isInCombat() && (GetTypeId() == TYPEID_PLAYER || (((Creature *)this)->isPet() && IsControlledByPlayer())))
|
||||
{
|
||||
// Check UNIT_STAT_MELEE_ATTACKING or UNIT_STAT_CHASE (without UNIT_STAT_FOLLOW in this case) so pets can reach far away
|
||||
// targets without stopping half way there and running off.
|
||||
|
||||
Reference in New Issue
Block a user