*Fix a typo breaking some summon types.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-22 20:22:36 +02:00
parent 0db6cb16d8
commit 974fad377e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -3281,8 +3281,10 @@ void Spell::EffectSummonType(uint32 i)
{ {
default: default:
if (properties->Flags & 512) if (properties->Flags & 512)
{
SummonGuardian(entry, properties); SummonGuardian(entry, properties);
break; break;
}
switch(properties->Type) switch(properties->Type)
{ {
case SUMMON_TYPE_PET: case SUMMON_TYPE_PET:
+1 -1
View File
@@ -219,7 +219,7 @@ void Unit::Update( uint32 p_time )
SendThreatListUpdate(); SendThreatListUpdate();
// update combat timer only for players and pets (only pets with PetAI) // 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 // 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. // targets without stopping half way there and running off.