--HG--
branch : trunk
This commit is contained in:
Brian
2010-04-01 12:56:52 -06:00
19 changed files with 95 additions and 50 deletions
+12
View File
@@ -3714,6 +3714,18 @@ void Map::ScriptsProcess()
break;
}
case SCRIPT_COMMAND_MODEL:
{
if(!source)
{
sLog.outError("SCRIPT_COMMAND_MODEL call for NULL creature.");
break;
}
source->ToCreature()->SetDisplayId(step.script->datalong);
break;
}
default:
sLog.outError("Unknown script command %u called.",step.script->command);
break;
+2 -2
View File
@@ -313,8 +313,8 @@ PlayerSocial *SocialMgr::LoadFromDB(QueryResult_AutoPtr result, uint32 guid)
social->m_playerSocialMap[friend_guid] = FriendInfo(flags, note);
// client limit
if(social->m_playerSocialMap.size() >= 50)
// client's friends list and ignore list limit
if(social->m_playerSocialMap.size() >= (SOCIALMGR_FRIEND_LIMIT + SOCIALMGR_IGNORE_LIMIT))
break;
}
while (result->NextRow());
+1 -3
View File
@@ -5029,10 +5029,8 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_TARGET_UNSKINNABLE;
Creature* creature = m_targets.getUnitTarget()->ToCreature();
if ( creature->GetCreatureType() != CREATURE_TYPE_CRITTER && ( !creature->lootForBody || !creature->loot.empty() ) )
{
if (creature->GetCreatureType() != CREATURE_TYPE_CRITTER && !creature->loot.isLooted())
return SPELL_FAILED_TARGET_NOT_LOOTED;
}
uint32 skill = creature->GetCreatureInfo()->GetRequiredLootSkill();
+1
View File
@@ -415,6 +415,7 @@ enum RealmZone
//trinity only
#define SCRIPT_COMMAND_ORIENTATION 30 // o = orientation
#define SCRIPT_COMMAND_EQUIP 31 // datalong = equipment id
#define SCRIPT_COMMAND_MODEL 32 // datalong = model id
/// Storage class for commands issued for delayed execution
struct CliCommandHolder