*Merge tc1 commits 1582-1590
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# 1589
|
||||
-- Spiritual Attunement
|
||||
UPDATE `spell_proc_event` SET `procFlags` = `procFlags`|0x80000 WHERE `entry` IN ('31785','33776');
|
||||
-1
@@ -77,7 +77,6 @@ struct TRINITY_DLL_DECL boss_pathaleon_the_calculatorAI : public ScriptedAI
|
||||
Enraged = false;
|
||||
|
||||
Counter = 0;
|
||||
|
||||
summons.DespawnAll();
|
||||
}
|
||||
void EnterCombat(Unit *who)
|
||||
|
||||
@@ -751,7 +751,6 @@ class TRINITY_DLL_SPEC Creature : public Unit
|
||||
|
||||
uint32 m_lootMoney;
|
||||
uint64 m_lootRecipient;
|
||||
uint32 m_unDamageByPlayers;
|
||||
|
||||
/// Timers
|
||||
uint32 m_deathTimer; // (msecs)timer for death or corpse disappearance
|
||||
|
||||
+9
-2
@@ -66,6 +66,12 @@ bool ChatHandler::HandleMuteCommand(const char* args)
|
||||
return false;
|
||||
|
||||
uint32 account_id = target ? target->GetSession()->GetAccountId() : objmgr.GetPlayerAccountIdByGUID(target_guid);
|
||||
std::string mutereasonstr;
|
||||
if(!mutereason)
|
||||
mutereasonstr = "No reason.";
|
||||
else
|
||||
mutereasonstr = mutereason;
|
||||
|
||||
|
||||
// find only player from same account if any
|
||||
if(!target)
|
||||
@@ -88,11 +94,12 @@ bool ChatHandler::HandleMuteCommand(const char* args)
|
||||
LoginDatabase.PExecute("UPDATE account SET mutetime = " UI64FMTD " WHERE id = '%u'",uint64(mutetime), account_id );
|
||||
|
||||
if(target)
|
||||
ChatHandler(target).PSendSysMessage(LANG_YOUR_CHAT_DISABLED, notspeaktime);
|
||||
ChatHandler(target).PSendSysMessage(LANG_YOUR_CHAT_DISABLED, notspeaktime, mutereasonstr.c_str());
|
||||
|
||||
std::string nameLink = playerLink(target_name);
|
||||
|
||||
PSendSysMessage(LANG_YOU_DISABLE_CHAT, nameLink.c_str(), notspeaktime);
|
||||
PSendSysMessage(LANG_YOU_DISABLE_CHAT, nameLink, notspeaktime, mutereasonstr.c_str());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+5
-8
@@ -19614,17 +19614,14 @@ void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewar
|
||||
|
||||
bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
|
||||
{
|
||||
if (pRewardSource->IsWithinDistInMap(this,sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE)))
|
||||
return true;
|
||||
const WorldObject* player = GetCorpse();
|
||||
if(!player || isAlive())
|
||||
player = this;
|
||||
|
||||
if (isAlive())
|
||||
if(player->GetMapId() != pRewardSource->GetMapId() || player->GetInstanceId() != pRewardSource->GetInstanceId())
|
||||
return false;
|
||||
|
||||
Corpse* corpse = GetCorpse();
|
||||
if (!corpse)
|
||||
return false;
|
||||
|
||||
return pRewardSource->IsWithinDistInMap(corpse,sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE));
|
||||
return pRewardSource->GetDistance(player) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE);
|
||||
}
|
||||
|
||||
uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const
|
||||
|
||||
@@ -6306,6 +6306,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
// heal amount
|
||||
basepoints0 = triggerAmount*damage/100;
|
||||
target = this;
|
||||
|
||||
if(basepoints0)
|
||||
triggered_spell_id = 31786;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user