diff options
author | Machiavelli <none@none> | 2009-08-16 03:25:27 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-08-16 03:25:27 +0200 |
commit | bcd0656b0d6d023c31eedf707db2d9dc044c3482 (patch) | |
tree | 6d9da9fa8a6d0a3949d8b726263c51da9e4cfdf5 /src/game/SpellAuras.cpp | |
parent | 28449378508d21cbf5bedb4fada26d86c91ab987 (diff) | |
parent | 71c69e3460c3a5f62aaa739955342ce57072c529 (diff) |
*Merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index d19d8120263..77946cf7bba 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2872,6 +2872,29 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real, bool changeAmount) } return; } + case 57819: // Argent Champion + case 57820: // Ebon Champion + case 57821: // Champion of the Kirin Tor + case 57822: // Wyrmrest Champion + { + if(!caster || caster->GetTypeId() != TYPEID_PLAYER) + return; + + uint32 FactionID = 0; + + if(apply) + { + switch(m_spellProto->Id) + { + case 57819: FactionID = 1106; break; // Argent Crusade + case 57820: FactionID = 1098; break; // Knights of the Ebon Blade + case 57821: FactionID = 1090; break; // Kirin Tor + case 57822: FactionID = 1091; break; // The Wyrmrest Accord + } + } + ((Player*)caster)->SetChampioningFaction(FactionID); + return; + } // LK Intro VO (1) case 58204: if(m_target->GetTypeId() == TYPEID_PLAYER) |