aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-21 16:23:21 -0500
committermegamage <none@none>2009-08-21 16:23:21 -0500
commit305ed233ff4986ae8d85e6b77a7c7290cc18cbf0 (patch)
treeef28af86171398e16a409893288caaeaa92f585a
parent054e4cecebeee2f49a895e630611ef31ba793f06 (diff)
*Remove rank auras from players who are offline after battle of wintergrasp ends.
--HG-- branch : trunk
-rw-r--r--src/game/Wintergrasp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp
index 161018d1b77..299615b43a6 100644
--- a/src/game/Wintergrasp.cpp
+++ b/src/game/Wintergrasp.cpp
@@ -806,6 +806,9 @@ void OPvPWintergrasp::EndBattle()
REMOVE_RANK_AURAS(*itr);
}
}
+
+ // remove auras from players who are not online
+ CharacterDatabase.PExecute("DELETE FROM character_aura WHERE spell IN (%u,%u,%u)", SPELL_RECRUIT, SPELL_CORPORAL, SPELL_LIEUTENANT);
}
void OPvPWintergrasp::SetData(uint32 id, uint32 value)