mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fix
This commit is contained in:
parent
62327e7af0
commit
5af8fb89d0
2 changed files with 5 additions and 5 deletions
|
|
@ -20480,4 +20480,5 @@ void Player::SendDuelCountdown(uint32 counter)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_DUEL_COUNTDOWN, 4);
|
WorldPacket data(SMSG_DUEL_COUNTDOWN, 4);
|
||||||
data << uint32(counter); // seconds
|
data << uint32(counter); // seconds
|
||||||
GetSession()->SendPacket(&data);
|
GetSession()->SendPacket(&data);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,8 @@ void Totem::UnSummon()
|
||||||
{
|
{
|
||||||
CombatStop();
|
CombatStop();
|
||||||
RemoveAurasDueToSpell(GetSpell());
|
RemoveAurasDueToSpell(GetSpell());
|
||||||
Unit *owner = GetOwner();
|
|
||||||
if (owner)
|
if (Unit *owner = GetOwner())
|
||||||
{
|
{
|
||||||
// clear owner's totem slot
|
// clear owner's totem slot
|
||||||
for(int i = 0; i < MAX_TOTEM; ++i)
|
for(int i = 0; i < MAX_TOTEM; ++i)
|
||||||
|
|
@ -106,8 +106,7 @@ void Totem::UnSummon()
|
||||||
((Player*)owner)->SendAutoRepeatCancel(this);
|
((Player*)owner)->SendAutoRepeatCancel(this);
|
||||||
|
|
||||||
// Not only the player can summon the totem (scripted AI)
|
// Not only the player can summon the totem (scripted AI)
|
||||||
Group *pGroup = ((Player*)owner)->GetGroup();
|
if (Group *pGroup = ((Player*)owner)->GetGroup())
|
||||||
if (pGroup)
|
|
||||||
{
|
{
|
||||||
for(GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
|
for(GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue