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
|
|
@ -20481,3 +20481,4 @@ void Player::SendDuelCountdown(uint32 counter)
|
|||
WorldPacket data(SMSG_DUEL_COUNTDOWN, 4);
|
||||
data << uint32(counter); // seconds
|
||||
GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ void Totem::UnSummon()
|
|||
{
|
||||
CombatStop();
|
||||
RemoveAurasDueToSpell(GetSpell());
|
||||
Unit *owner = GetOwner();
|
||||
if (owner)
|
||||
|
||||
if (Unit *owner = GetOwner())
|
||||
{
|
||||
// clear owner's totem slot
|
||||
for(int i = 0; i < MAX_TOTEM; ++i)
|
||||
|
|
@ -106,8 +106,7 @@ void Totem::UnSummon()
|
|||
((Player*)owner)->SendAutoRepeatCancel(this);
|
||||
|
||||
// Not only the player can summon the totem (scripted AI)
|
||||
Group *pGroup = ((Player*)owner)->GetGroup();
|
||||
if (pGroup)
|
||||
if (Group *pGroup = ((Player*)owner)->GetGroup())
|
||||
{
|
||||
for(GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue