#ifndef AA_H
#define AA_H

#define MAX_SWARM_PETS 12	//this can change as long as you make more coords (swarm_pet_x/swarm_pet_y)
#define WAKE_THE_DEAD_NPCTYPEID 500 //We use first pet in pets table as a template

typedef enum {
	aaActionNone				= 0,
	aaActionAETaunt				= 1,
	aaActionMassBuff			= 2,
	aaActionFlamingArrows		= 3,
	aaActionFrostArrows			= 4,
	aaActionRampage				= 5,
	aaActionSharedHealth		= 6,
	aaActionCelestialRegen		= 7,
	aaActionDireCharm			= 8,
	aaActionImprovedFamiliar	= 9,
	aaActionActOfValor			= 10,
	aaActionSuspendedMinion		= 11,
	aaActionEscape				= 12,
	aaActionBeastialAlignment	= 13,
	aaActionLeechTouch			= 14,
	aaActionProjectIllusion		= 15,
	aaActionFadingMemories		= 16
} aaNonspellAction;

enum {	//leadership AA indexes
	groupAAMarkNPC = 0,
	groupAANPCHealth,
	groupAADelegateMainAssist,
	groupAADelegateMarkNPC,
	groupAA4,
	groupAA5,
	groupAAInspectBuffs,
	groupAA7,
	groupAASpellAwareness,
	groupAAOffenseEnhancement,
	groupAAManaEnhancement,
	groupAAHealthEnhancement,
	groupAAHealthRegeneration,
	groupAAFindPathToPC,
	groupAAHealthOfTargetsTarget,
	groupAA15,

	raidAAMarkNPC,	//0x10, things assume this is the first raid ability
	raidAANPCHealth,
	raidAADelegateMainAssist,
	raidAADelegateMarkNPC,
	raidAA4,
	raidAA5,
	raidAA6,
	raidAASpellAwareness,
	raidAAOffenseEnhancement,
	raidAAManaEnhancement,
	raidAAHealthEnhancement,
	raidAAHealthRegeneration,
	raidAAFindPathToPC,
	raidAAHealthOfTargetsTarget,
	raidAA14,
	raidAA15,

	_maxLeaderAA	//=32
};

#define MAX_LEADERSHIP_TIERS 6
//each progression should be 0 terminated to mark it as the end.
static const uint8 LeadershipAACosts[_maxLeaderAA][MAX_LEADERSHIP_TIERS] = {
{ 1, 2, 3, 0, 0, 0 },	//groupAAMarkNPC
{ 2, 0, 0, 0, 0, 0 },	//groupAANPCHealth
{ 4, 0, 0, 0, 0, 0 },	//groupAADelegateMainAssist - Have seen DelegateMainAssist come in with two different codes.
{ 4, 0, 0, 0, 0, 0 },	//groupAADelegateMainAssist
{ 4, 0, 0, 0, 0, 0 },	//groupAADelegateMarkNPC
{ 0, 0, 0, 0, 0, 0 },	//groupAA5
{ 4, 6, 0, 0, 0, 0 },	//groupAAInspectBuffs
{ 0, 0, 0, 0, 0, 0 },	//groupAA7
{ 6, 0, 0, 0, 0, 0 },	//groupAASpellAwareness
{ 4, 5, 6, 7, 8, 0 },	//groupAAOffenseEnhancement
{ 4, 6, 8, 0, 0, 0 },	//groupAAManaEnhancement
{ 4, 6, 8, 0, 0, 0 },	//groupAAHealthEnhancement
{ 4, 6, 8, 0, 0, 0 },	//groupAAHealthRegeneration
{ 4, 0, 0, 0, 0, 0 },	//groupAAFindPathToPC
{ 7, 0, 0, 0, 0, 0 },	//groupAAHealthOfTargetsTarget
{ 0, 0, 0, 0, 0, 0 },	//groupAA15

{ 5, 6, 7, 0, 0, 0 },	//raidAAMarkNPC	//0x10
{ 4, 0, 0, 0, 0, 0 },	//raidAANPCHealth
{ 6, 7, 8, 0, 0, 0 },	//raidAADelegateMainAssist
{ 6, 6, 6, 0, 0, 0 },	//raidAADelegateMarkNPC
{ 6, 6, 6, 0, 0, 0 },	//raidAADelegateMarkNPC (works for SoD and Titanium)
{ 0, 0, 0, 0, 0, 0 },	//raidAA5
{ 0, 0, 0, 0, 0, 0 },	//raidAA6
{ 8, 0, 0, 0, 0, 0 },	//raidAASpellAwareness
{ 6, 7, 8, 9, 10, 0 },	//raidAAOffenseEnhancement
{ 6, 8, 10, 0, 0, 0 },	//raidAAManaEnhancement
{ 6, 8, 10, 0, 0, 0 },	//raidAAHealthEnhancement
{ 6, 8, 10, 0, 0, 0 },	//raidAAHealthRegeneration
{ 5, 0, 0, 0, 0, 0 },	//raidAAFindPathToPC
{ 9, 0, 0, 0, 0, 0 },	//raidAAHealthOfTargetsTarget
{ 0, 0, 0, 0, 0, 0 },	//raidAA14
{ 0, 0, 0, 0, 0, 0 },	//raidAA15
};

typedef enum {	//AA IDs
	aaNone									=0,
	aaInnateStrength						=2,//implemented as bonus
	aaInnateStamina							=7,//implemented as bonus
	aaInnateAgility							=12,//implemented as bonus
	/*aaCompleteHeal						=13,*///not implemented, but is in dbstr_us.txt
	aaInnateDexterity						=17,//implemented as bonus
	aaInnateIntelligence					=22,//implemented as bonus
	aaInnateWisdom							=27,//implemented as bonus
	aaInnateCharisma						=32,//implemented as bonus
	aaInnateFireProtection					=37,//implemented as bonus
	aaInnateColdProtection					=42,//implemented as bonus
	aaInnateMagicProtection					=47,//implemented as bonus
	aaInnatePoisonProtection				=52,//implemented as bonus
	aaInnateDiseaseProtection				=57,//implemented as bonus
	aaInnateRunSpeed						=62,//implemented as bonus
	aaInnateRegeneration					=65,//implemented as bonus
	aaInnateMetabolism						=68,
	aaInnateLungCapacity					=71,//handled by client
	aaFirstAid								=74,//implemented as bonus
	aaHealingAdept							=77,//implemented as bonus-focus
	aaHealingGift							=80,//implemented as bonus
	aaSpellCastingMastery					=83,//untested
	aaSpellCastingReinforcement				=86,//untested
	aaMentalClarity							=89,//implemented as bonus
	aaSpellCastingFury						=92,//implemented as bonus
	aaChanellingFocus						=95,//implemented as bonus *Live AA effect removed in 2006
	aaSpellCastingSubtlety					=98,//untested
	aaSpellCastingExpertise					=101,//untested
	aaSpellCastingDeftness					=104,//implemented as bonus-focus
	aaNaturalDurability						=107,//implemented as bonus
	aaNaturalHealing						=110,//implemented as bonus
	aaCombatFury							=113,//implemented as bonus
	aaFearResistance						=116,//untested
	aaFinishingBlow							=119,//untested
	aaCombatStability						=122,//implemented as bonus
	aaCombatAgility							=125,//implemented as bonus
	aaMassGroupBuff							=128,//untested
	aaDivineResurrection					=129,//DB
	aaInnateInvisToUndead					=130,//DB
	aaCelestialRegeneration					=131,//untested
	aaBestowDivineAura						=132,//DB
	aaTurnUndead							=133,//DB
	aaPurifySoul							=136,//DB
	aaQuickEvacuation						=137,//implemented as bonus-focus
	aaExodus								=140,//untested
	aaQuickDamage							=141,//implemented as bonus-focus
	aaEnhancedRoot							=144,//implemented as bonus
	aaDireCharm								=145,//untested
	aaCannibalization						=146,//DB
	aaQuickBuff								=147,//implemented as bonus-focus
	aaAlchemyMastery						=150,
	aaRabidBear								=153,//DB
	aaManaBurn								=154,//DB
	aaImprovedFamiliar						=155,//untested, implemented?
	aaNexusGate								=156,//DB
	aaUnknown54								=157,
	aaPermanentIllusion						=158,
	aaJewelCraftMastery						=159,
	aaGatherMana							=162,//DB
	aaMendCompanion							=163,//DB
	aaQuickSummoning						=164,//implemented as bonus-focus
	aaFrenziedBurnout						=167,//DB
	aaElementalFormFire						=168,//DB
	aaElementalFormWater					=171,//DB
	aaElementalFormEarth					=174,//DB
	aaElementalFormAir						=177,//DB
	aaImprovedReclaimEnergy					=180,//untested
	aaTurnSummoned							=181,//DB
	aaElementalPact							=182,//DB
	aaLifeBurn								=183,//DB
	aaDeadMesmerization						=184,//DB
	aaFearstorm								=185,//DB
	aaFleshToBone							=186,//DB
	aaCallToCorpse							=187,//DB
	aaDivineStun							=188,//DB
	aaImprovedLayOnHands					=189,
	aaSlayUndead							=190,//implemented as bonus
	aaActOfValor							=193,//DB
	aaHolySteed								=194,//DB
	aaFearless								=195,
	aa2HandBash								=196,//works. handled by client?
	aaInnateCamouflage						=197,//DB
	aaAmbidexterity							=198,//implemented as bonus
	aaArcheryMastery						=199,//implemented as bonus
	aaFletchingMastery						=202,//removed from db?
	aaEndlessQuiver							=205,//implemented as bonus
	aaUnholySteed							=206,//DB
	aaImprovedHarmTouch						=207,//untested
	aaLeechTouch							=208,//DB
	aaDeathPeace							=209,
	aaSoulAbrasion							=210,//implemented as bonus-focus
	aaInstrumentMastery						=213,//untested
	aaUnknown91								=216,//not used
	aaUnknown92								=219,//not used
	aaUnknown93								=222,//not used
	aaJamFest								=225,//implemented as bonus
	aaUnknown95								=228,
	aaSonicCall								=229,
	aaCriticalMend							=230,//untested
	aaPurifyBody							=233,//DB
	aaChainCombo							=234,
	aaRapidFeign							=237,//works
	aaReturnKick							=240,//implemented as bonus
	aaEscape								=243,//DB
	aaPoisonMastery							=244,
	aaDoubleRiposte							=247,//implemented as bonus
	aaQuickHide								=250,
	aaQuickThrow							=253,//corrected from dbstr_us.txt
	aaPurgePoison							=254,//DB
	aaFlurry								=255,//implemented as bonus
	aaRampage								=258,//untested
	aaAreaTaunt								=259,//untested
	aaWarcry								=260,//DB
	aaBandageWound							=263,//implemented as bonus
	aaSpellCastingReinforcementMastery		=266,//untested
	aaSpellCastingFuryMastery				=267,//untested
	aaExtendedNotes							=270,//implemented as bonus
	aaDragonPunch							=273,//implemented as bonus
	aaStrongRoot							=274,//DB
	aaSingingMastery						=275,//untested
	aaBodyAndMindRejuvenation				=278,//added
	aaPhysicalEnhancement					=279,//implemented as bonus
	aaAdvTrapNegotiation					=280,//untested
	aaAcrobatics							=283,//untested
	aaScribbleNotes							=286,
	aaChaoticStab							=287,//implemented as bonus
	aaPetDiscipline							=288,//added
	aaHobbleofSpirits						=289,//DB
	aaFrenzyofSpirit						=290,//DB
	aaParagonofSpirit						=291,//DB
	aaAdvancedInnateStrength				=292,//implemented as bonus
	aaAdvancedInnateStamina					=302,//implemented as bonus
	aaAdvancedInnateAgility					=312,//implemented as bonus
	aaAdvancedInnateDexterity				=322,//implemented as bonus
	aaAdvancedInnateIntelligence			=332,//implemented as bonus
	aaAdvancedInnateWisdom					=342,//implemented as bonus
	aaAdvancedInnateCharisma				=352,//implemented as bonus
	aaWardingofSolusek						=362,//implemented as bonus
	aaBlessingofEci							=372,//implemented as bonus
	aaMarrsProtection						=382,//implemented as bonus
	aaShroudofTheFaceless					=392,//implemented as bonus
	aaBertoxxulousGift						=402,//implemented as bonus
	aaNewTanaanCraftingMastery				=412,
	aaPlanarPower							=418,//untested
	aaPlanarDurability						=423,//added
	aaInnateEnlightenment					=426,//added
	aaAdvancedSpellCastingMastery			=431,//untested
	aaAdvancedHealingAdept					=434,//untested
	aaAdvancedHealingGift					=437,//untested
	aaCoupdeGrace							=440,//added
	aaFuryoftheAges							=443,//implemented as bonus
	aaMasteryofthePast						=446,//implemented as bonus
	aaLightningReflexes						=449,//implemented as bonus
	aaInnateDefense							=454,//implemented as bonus
	aaRadiantCure							=459,//DB
	aaHastenedDivinity						=462,//DB
	aaHastenedTurning						=465,//DB
	aaHastenedPurificationofSoul			=468,//DB
	aaHastenedGathering						=471,//DB
	aaHastenedRabidity						=474,//DB
	aaHastenedExodus						=477,//DB
	aaHastenedRoot							=480,//DB
	aaHastenedMending						=483,//DB
	aaHastenedBanishment					=486,//DB
	aaHastenedInstigation					=489,//DB, maybe
	aaFuriousRampage						=492,//DB
	aaHastenedPurificationoftheBody			=495,//DB
	aaHastyExit								=498,//DB
	aaHastenedPurification					=501,//DB
	aaFlashofSteel							=504,//implemented as bonus
	aaDivineArbitration						=507,//DB
	aaWrathoftheWild						=510,//DB
	aaVirulentParalysis						=513,//DB
	aaHarvestofDruzzil						=516,//DB
	aaEldritchRune							=517,//DB
	aaServantofRo							=520,//DB
	aaWaketheDead							=523,//DB
	aaSuspendedMinion						=526,//untested
	aaSpiritCall							=528,//DB
	aaCelestialRenewal						=531,//DB
	aaAllegiantFamiliar						=533,
	aaHandofPiety							=534,//DB
	aaMithanielsBinding						=537,//implemented as bonus
	aaMendingoftheTranquil					=539,
	aaRagingFlurry							=542,//implemented as bonus
	aaGuardianoftheForest					=545,//DB
	aaSpiritoftheWood						=548,//DB
	aaBestialFrenzy							=551,//implemented as bonus
	aaHarmoniousAttack						=556,//implemented as bonus
	aaKnightsAdvantage						=561,//implemented as bonus
	aaFerocity								=564,//implemented as bonus
	aaViscidRoots							=567,
	aaSionachiesCrescendo					=568,//implemented as bonus
	aaAyonaesTutelage						=571,
	aaFeignedMinion							=574,
	aaUnfailingDivinity						=577,
	aaAnimationEmpathy						=580,// Implemented
	aaRushtoJudgement						=583,
	aaLivingShield							=586,
	aaConsumptionoftheSoul					=589,//untested
	aaBoastfulBellow						=592,//DB
	aaFervrentBlessing						=593,//untested
	aaTouchoftheWicked						=596,//untested
	aaPunishingBlade						=599,//implemented as bonus
	aaSpeedoftheKnight						=602,//implemented as bonus
	aaShroudofStealth						=605,
	aaNimbleEvasion							=606,
	aaTechniqueofMasterWu					=611,
	aaHostoftheElements						=616,//DB
	aaCallofXuzl							=619,//DB
	aaHastenedStealth						=622,
	aaIngenuity								=625,
	aaFleetofFoot							=628,//implemented as bonus
	aaFadingMemories						=630,
	aaTacticalMastery						=631,//implemented as bonus
	aaTheftofLife							=634,//implemented as bonus-focus
	aaFuryofMagic							=637,
	aaFuryofMagicMastery2					=640,//whats the difference?
	aaProjectIllusion						=643,
	aaHeadshot								=644,//added
	aaEntrap								=645,//DB
	aaUnholyTouch							=646,//untested
	aaTotalDomination						=649,// Implemented
	aaStalwartEndurance						=652,//implemented as bonus
	aaQuickSummoning2						=655,//*not implemented - Liva AA that replaces prior version in later exp.
	aaMentalClarity2						=658,//whats the difference?
	aaInnateRegeneration2					=661,//whats the difference?
	aaManaBurn2								=664,//whats the difference?
	aaExtendedNotes2						=665,//*not implemented - Live AA that replaces prior version in later exp.
	aaSionachiesCrescendo2					=668,//*not implemented - Live AA that replaces prior version in later exp.
	aaImprovedReclaimEnergy2				=671,//whats the difference? untetsed
	aaSwiftJourney							=672,//implemented as bonus
	aaConvalescence							=674,//added 9/26/08
	aaLastingBreath							=676,//handled by client
	aaPackrat								=678,//added 9/29/08
	aaHeightenedEndurance					=683,
	aaWeaponAffinity						=686,//implemented as bonus
	aaSecondaryForte						=691,
	aaPersistantCasting						=692,
	aaTuneofPursuance						=695,
	aaImprovedInstrumentMastery				=700,
	aaImprovedSingingMastery				=701,
	aaExultantBellowing						=702,
	aaEchoofTaelosia						=707,
	aaInternalMetronome						=710,//implemented as bonus *Live AA removed in 2006
	aaPiousSupplication						=715,
	aaBeastialAlignment						=718,//untested
	aaWrathofXuzl							=721,
	aaFeralSwipe							=723,//DB?
	aaWardersFury							=724,//implemented as bonus
	aaWardersAlacrity						=729,//implemented as bonus
	aaPetAffinity							=734,//implemented as bonus
	aaMasteryofthePast2						=735,//implemented as bonus [Different classes]
	aaSpellCastingSubtlety2					=738,//whats the difference?
	aaTouchoftheDivine						=741,
	aaDivineAvatar							=746,//DB
	aaExquisiteBenediction					=749,//DB
	aaQuickenedCuring						=754,
	aaNaturesBoon							=757,//DB
	aaAdvancedTracking						=762,
	aaCriticalAffliction					=767,
	aaFuryofMagicMastery					=770,//whats the difference?
	aaDoppelganger							=773,
	aaEnchancedForgetfulness				=776,
	aaMesmerizationMastery					=781,
	aaQuickMassGroupBuff					=782,
	aaSharedHealth							=785,
	aaElementalFury							=790,//implemented as bonus
	aaElementalAlacrity						=795,//implemented as bonus
	aaElementalAgility						=800,//implemented as bonus
	aaElementalDurability					=803,//implemented as bonus
	aaSinisterStrikes						=806,//implemented as bonus
	aaStrikethrough							=807,//implemented as bonus
	aaStonewall								=810,
	aaRapidStrikes							=815,//implemented as bonus
	aaKickMastery							=820,//implemented as bonus
	aaHightenedAwareness					=823,
	aaDestructiveForce						=828,//DB
	aaSwarmofDecay							=831,//DB
	aaDeathsFury							=834,
	aaQuickeningofDeath						=839,//implemented as bonus
	aaAdvancedTheftofLife					=844,//implemented as bonus-focus
	aaTripleBackstab						=846,//implemented as bonus
	aaHastenedPiety							=849,
	aaImmobilizingBash						=852,
	aaViciousSmash							=855,//implemented as bonus
	aaRadiantCure2							=860,//whats the difference?
	aaPurification							=863,
	aaPrecisionofthePathfinder				=864,//implemented as bonus
	aaCoatofThistles						=867,
	aaFlamingArrows							=872,//untested
	aaFrostArrows							=875,//untested
	aaSeizedOpportunity						=878,
	aaTrapCircumvention						=881,
	aaImprovedHastyExit						=886,
	aaVirulentVenom							=888,
	aaImprovedConsumptionofSoul				=893,
	aaIntenseHatred							=895,
	aaAdvancedSpiritCall					=900,
	aaCalloftheAncients						=902,//DB
	aaSturdiness							=907,
	aaWarlordsTenacity						=912,//implemented as effect
	aaStrengthenedStrike					=915,//implemented as bonus
	aaExtendedShielding						=918,
	aaRosFlamingFamiliar					=921,//DB
	aaEcisIcyFamiliar						=922,//DB
	aaDruzzilsMysticalFamiliar				=923,//DB
	aaAdvancedFuryofMagicMastery			=924,//added 9/29/08
	aaWardofDestruction						=926,//DB
	aaFrenziedDevastation					=931,//DB
	aaCombatFury2							=934,//implemented as bonus
	aaCombatFury3							=937,//implemented as bonus
	aaCombatFury4							=940,//implemented as bonus
	aaFuryoftheAges2						=943,//implemented as bonus
	aaFuryoftheAges3						=946,//implemented as bonus
	aaFuryoftheAges4						=949,//implemented as bonus
	aaPlanarDurability2						=952,//whats the difference?
	aaInnateEnlightenment2					=955,//whats the difference?
	aaDireCharm2							=960,//whats the difference?
	aaDireCharm3							=961,//whats the difference?
	aaTouchoftheDivine2						=962,//whats the difference?
	aaTouchofDecay							=967,
	aaCalloftheAncients2					=970,//whats the difference?
	aaImprovedVision						=975,
	aaEternalBreath							=978,//handled by client
	aaBlacksmithingMastery					=979,//added 9/29/08
	aaBakingMastery							=982,//added 9/29/08
	aaBrewingMastery						=985,//added 9/29/08
	aaFletchingMastery2						=988,//added 9/29/08
	aaPotteryMastery						=991,//added 9/29/08
	aaTailoringMastery						=994,//added 9/29/08
	aaSalvage								=997,
	aaOrigin								=1000,//spell
	aaChaoticPotential						=1001,//added
	aaDiscordantDefiance					=1006,//implemented as bonus
	aaTrialsofMataMuram						=1011,
	aaMysticalAttuning						=1021,
	aaDelayDeath							=1026,//implemented as bonus
	aaHealthyAura							=1031,
	aaFitness								=1036,//implemented as bonus
	aaVeteransWrath							=1041,//implemented as bonus [Different classes/values on each Veteran's Wrath]
	aaVeteransWrath2						=1044,//implemented as bonus
	aaVeteransWrath3						=1047,//implemented as bonus
	aaVeteransWrath4						=1050,//implemented as bonus
	aaDeathblow								=1053,//implemented as bonus
	aaReflexiveMastery						=1061,//implemented as bonus
	aaDefensiveInstincts					=1066,//implemented as bonus
	aaMnemonicRetention						=1071,//Implemented
	aaExpansiveMind							=1072,//added 9/29/08
	aaSleightofHand							=1077,
	aaSleightofHand2						=1080,//whats the difference?
	aaHealingAdeptMastery					=1083,
	aaHealingGiftMastery					=1086,
	aaArcaneTongues							=1089,
	aaMasterofDisguise						=1092,
	aaSlipperyAttacks						=1093,
	aaImprovedCriticalAffliction			=1099,
	aaFortifiedBellowing					=1102,
	aaFuryofMagic2							=1107,//whats the difference?
	aaDanceofBlades							=1110,
	aaShieldofNotes							=1116,
	aaRoarofThunder							=1119,
	aaPersistentMinion						=1122,
	aaPerfectionofSpirit					=1123,
	aaReplentishCompanion					=1126,
	aaAdvancedPetDiscipline					=1129,
	aaThrowingMastery						=1131,//implemented as bonus
	aaBlurofAxes							=1134,//implemented as bonus
	aaHastenedWarCry						=1137,
	aaDeadAim								=1140,//implemented as bonus
	aaFrenziedDefense						=1143,//*not implemented - duplicate
	aaTirelessSprint						=1146,
	aaDesperation							=1149,
	aaUntamedRage							=1150,
	aaEchoingCries							=1155,
	aaViciousFrenzy							=1158,
	aaCrazedOnslaught						=1163,
	aaFrenziedDefense2						=1166,//implemented as bonus
	aaOverwhelmingAttack					=1172,
	aaFuriousRage							=1175,
	aaBloodPact								=1178,
	aaShieldingResistance					=1181,////implemented as bonus
	aaHealingBoon							=1186,
	aaResplendentCure						=1189,
	aaCelestialHammer						=1192,
	aaDivineRetribution						=1195,
	aaCelestialRejuvination					=1203,
	aaFerventBenediction					=1206,
	aaSanctuary								=1209,
	aaDestructiveFury						=1210,//implemented as bonus - added 9/29/08
	aaDestructiveFury2						=1213,//*not implemented [classes changed] - replaces id 1210
	aaBoonoftheForest						=1222,
	aaSpiritoftheGrove						=1225,
	aaCalloftheWild							=1228,
	aaSecondaryRecall						=1229,
	aaNaturesBounty							=1230,
	aaStasis								=1233,
	aaColorShock							=1239,
	aaMindOverMatter						=1242,
	aaSoothingWords							=1245,
	aaElementalSwarm						=1248,
	aaHeartofFlames							=1251,
	aaHeartofVapor							=1252,
	aaHeartofIce							=1253,
	aaHeartofStone							=1254,
	aaImitateDeath							=1255,
	aaCripplingStrike						=1256,
	aaStunningKick							=1259,
	aaEyeGouge								=1262,
	aaIronKicks								=1265,
	aaStyleoftheMimic						=1268,
	aaDeathPeace2							=1272,//whats the difference?
	aaArmyoftheDead							=1274,
	aaCelestialStun							=1277,
	aaHandofDevotion						=1278,
	aaSteadfastWill							=1284,
	aaShieldBlock							=1287,//implemented as bonus
	aaScoutsEfficiency						=1290,//implemented as bonus
	aaGuardianoftheGlade					=1293,
	aaTrackingMastery						=1296,
	aaFlurryofKnives						=1301,//implemented as bonus
	aaPrecision								=1304,
	aaNervesofSteel							=1307,
	aaTouchoftheCursed						=1313,
	aaSpiritualCorrosion					=1316,
	aaSoulThief								=1319,//implemented as bonus-focus
	aaSpiritualChanneling					=1323,//implemented as effect
	aaBoonoftheAncients						=1324,
	aaAncestralAid							=1327,//implemented as effect
	aaResoluteDefiance						=1330,//implemented as effect
	aaPresstheAttack						=1333,
	aaMindCrash								=1334,
	aaProlongedDestruction					=1337,
	aaRosGreaterFamiliar					=1340,
	aaEcisGreaterFamiliar					=1341,
	aaDruzzilsGreaterFamiliar				=1342,
	aaTeleportBind							=1343,
	aaDevotedFamiliar						=1344,
	aaAuspiceoftheHunter					=1345,
	aaSavageSpirit							=1348,
	aaPresstheAttack2						=1351,//whats the difference?
	aaCripplingStrike2						=1352,//whats the difference?
	aaStunningKick2							=1353,//whats the difference?
	aaEyeGouge2								=1358,//whats the difference?


	aaGiftoftheDarkReign					=1361,//from dbstr_us.txt
	aaTenacityoftheDarkReign				=1362,//from dbstr_us.txt
	aaEmbraceoftheDarkReign					=1363,//from dbstr_us.txt
	aaPoweroftheDarkReign					=1364,//from dbstr_us.txt
	aaFervoroftheDarkReign					=1365,//from dbstr_us.txt
	aaGiftoftheKeepers						=1366,//from dbstr_us.txt
	aaValoroftheKeepers						=1367,//from dbstr_us.txt
	aaEmbraceoftheKeepers					=1368,//from dbstr_us.txt
	aaPoweroftheKeepers						=1369,//from dbstr_us.txt
	aaSanctityoftheKeepers					=1370,//from dbstr_us.txt


	aaLessonoftheDevoted					=1371,//from dbstr_us.txt
	aaInfusionoftheFaithful					=1372,//from dbstr_us.txt
	aaChaoticJester							=1373,//from dbstr_us.txt
	aaExpedientRecovery						=1374,//from dbstr_us.txt
	aaSteadfastServant						=1375,//from dbstr_us.txt
	aaStaunchRecovery						=1376,//from dbstr_us.txt
	aaIntensityoftheResolute				=1377,//from dbstr_us.txt


	aaCurseofBlood							=1378,//from dbstr_us.txt
	aaAfflictionofBlood						=1379,//from dbstr_us.txt
	aaTormentofBlood						=1380,//from dbstr_us.txt
	aaTemptationofBlood						=1381,//from dbstr_us.txt
	aaInvitationofBlood						=1382,//from dbstr_us.txt

	aaTurnUndead2							=1383,//from dbstr_us.txt, Class AA changed in DoD
	aaWrackUndead							=1386,//from dbstr_us.txt, PoP Class AA changed in DoD
	aaEradicateUndead						=1387,//from dbstr_us.txt
	aaInnateSeeInvis						=1388,//implemented as bonus
	aaProlongedMortality					=1389,//from dbstr_us.txt
	aaPrecognition							=1394,//implemented as bonus
	aaThickSkin								=1399,//implemented as bonus
	aaSilentCasting							=1404,//from dbstr_us.txt
	aaSilentCasting2						=1409,//from dbstr_us.txt
	aaHastenedMindCrash						=1414,//from dbstr_us.txt
	aaFieldDressing							=1417,//implemented as bonus
	aaBandageWounds							=1420,//implemented as bonus
	aaCascadingRage							=1425,//from dbstr_us.txt
	aaElementalFerocity						=1430,//from dbstr_us.txt
	aaGiftofMana							=1435,//implemented as bonus
	aaRuneofShadows							=1440,//from dbstr_us.txt
	aaChannelingMastery						=1445,//from dbstr_us.txt
	aaConservation							=1453,//from dbstr_us.txt
	aaCryofBattle							=1458,//from dbstr_us.txt
	aaWardofPurity							=1459,//from dbstr_us.txt
	aaTurnSummoned2							=1462,//from dbstr_us.txt
	aaWrackSummoned							=1465,//from dbstr_us.txt
	aaEradicateSummoned						=1466,//from dbstr_us.txt
	aaWardersSavagery						=1467,//from dbstr_us.txt
	aaShackleofSpirits						=1470,//from dbstr_us.txt
	aaHastenedThunder						=1471,//from dbstr_us.txt
	aaTranslocationalAnchor					=1474,//from dbstr_us.txt
	aaStealthyGetaway						=1477,//from dbstr_us.txt
	aaPyromancy								=1478,//from dbstr_us.txt
	aaMasteryofFury							=1483,//from dbstr_us.txt
	aaAbundantHealing						=1486,//from dbstr_us.txt
	aaGreaterAvatar							=1491,//from dbstr_us.txt
	aaSharedCamouflage						=1494,//from dbstr_us.txt
	aaConvergenceofSpirits					=1495,//from dbstr_us.txt
	aaNaturesGuardian						=1498,//from dbstr_us.txt
	aaEdictofCommand						=1501,//from dbstr_us.txt
	aaExtendedBurnout						=1504,//from dbstr_us.txt
	aaGuardianofRo							=1507,//from dbstr_us.txt
	aaBloodMagic							=1510,//from dbstr_us.txt
	aaGraverobbing							=1511,//from dbstr_us.txt
	aaAfflictionMastery						=1514,//from dbstr_us.txt
	aaGreaterRabidBear						=1517,//from dbstr_us.txt
	aaAncestralGuard						=1520,//from dbstr_us.txt
	aaCloakofLight							=1523,//from dbstr_us.txt
	aaVanquishUndead						=1524,//from dbstr_us.txt
	aaCloakofShadows						=1527,//from dbstr_us.txt
	aaWillfulDeath							=1528,//from dbstr_us.txt
	aaSwiftBlade							=1533,//implemented as bonus
	aaWickedBlade							=1536,//implemented as bonus
	aaForcedOpening							=1539,//from dbstr_us.txt
	aaAppraisal								=1542,//from dbstr_us.txt
	aaPreciseStrikes						=1543,//from dbstr_us.txt
	aaHastenedDeath							=1546,//from dbstr_us.txt
	aaUnflinchingResolve					=1549,//from dbstr_us.txt
	aaWeightlessSteps						=1552,//from dbstr_us.txt
	aaHastenedBlades						=1555,//from dbstr_us.txt
	aaImprovedHarmoniousAttack				=1563,//from dbstr_us.txt
	aaImprovedBestialFrenzy					=1566,//from dbstr_us.txt
	aaSongofStone							=1569,//from dbstr_us.txt
	aaDeepSleep								=1572,//from dbstr_us.txt
	aaCompanionsGift						=1577,//from dbstr_us.txt
	aaHastenedDefiance						=1583,//implemented as redux
	aaDauntlessPerseverance					=1586,//implemented as bonus
	aaConcentration							=1587,//implemented as bonus
	aaEnhancedAggression					=1592,//from dbstr_us.txt
	aaCallofChallenge						=1597,//implemented as effect
	aaCacophony								=1598,//from dbstr_us.txt
	aaImprovedHeadshot						=1601,//from dbstr_us.txt
	aaAnatomy								=1604,//from dbstr_us.txt
	aaFetterofSpirits						=1607,//from dbstr_us.txt
	aaTrickShot								=1608,//from dbstr_us.txt
	aaLightningStrikes						=1616,//implemented as bonus
	aaRelentlessAssault						=1621,//implemented as bonus
	aaKnightsExpertise						=1624,//implemented as bonus
	aaSelosEnduringCadence					=1627,//implemented as bonus


	aaThroneofHeroes						=4655,
	aaTinkeringMastery						=4672,
	aaCombatMedic							=4688,//implemented as bonus
	aaQuickDraw								=4698,
	aaBattleReady							=4699,
	aaGlyphofDragonScales					=4702,//implemented as effect
	aaGlyphofArcaneSecrets					=4704,//implemented as effect
	aaGlyphofDraconicPotential				=4705,//implemented as effect
	aaGlyphofDestruction					=4706,//implemented as effect
	aaKillingSpree							=4739,//implemented as effect
	aaHoldtheLine							=4742,
	aaBloodTithe							=4761,
	aaSleightofHand3						=4767,
	aaGiftofRadiantMana						=4773,
	aaSavageAssault							=4795,//Flurry
	aaOverbear								=4798,
	aaHastenedMend							=4801,
	aaPrecisionofAxes						=4809,
	aaDeathMask								=4819,
	aaGrapplingStrike						=4836,
	aaShieldSpecialist						=4844,
	aaMarkoftheMageHunter					=4849,
	aaHamstring								=4850,
	aaUncannyResilience						=4854,

	aaBlindingFury							=4857,
	aaBattleLeap							=4860,
	aaSoulSeeker							=4861,
	aaHolyLight								=4880,
	aaSurreality							=4887,
	aaManaDraw								=4890,
	aaNightmareStasis						=4894,
	aaFireCore								=4903,
	aaVaporCore								=4906,
	aaIceCore								=4909,
	aaStoneCore								=4912,
	aaVolatileManaBlaze						=4915,
	aaGreaterBloodTithe						=4924,
	aaGatheringDusk							=4927,
	aaVeilofMindshadow						=4931,
	aaSanguineMindCrystal					=4934,
	aaAzureMindCrystal						=4935,
	aaArcaneWhisper							=4938,
	aaDimensionalInstability				=4943,
	aaCryomancy								=4944,
	aaSurvivalist							=5000,
	aaProtectionoftheSpiritWolf				=5007,
	aaTasteofBlood							=5015,
	aaHymnoftheLastStand					=5017,
	aaBladedSong							=5020,
	aaTwistedShank							=5021,
	aaDirtyFighting							=5022,
	aaLigamentSlice							=5025,
	aaTumble								=5028,
	aaSiphonSoul							=5032,
	aaUnflinchingWill						=5035,
	aaPetrifiedRoots						=5061,
	aaHastenedSanctuary						=5083,
	aaMortalCoil							=5085,
	aaArmoroftheInquisitor					=5095,
	aaHandofDisruption						=5098,
	aaSpiritoftheWhiteWolf					=5105,
	aaPactoftheWolf							=5109,
	aaDoppelgangersBeckon					=5127,
	aaBreathofAtathus						=5150,
	aaBreathofDratonra						=5165,
	aaBreathofOshvir						=5180,
	aaBreathofVenesh						=5195,
	aaBreathofMysaphar						=5210,
	aaBreathofKeikolin						=5225,
	aaHuntersFury							=5248,
	aaUnionofSpirits						=5251,
	aaShieldBlock2							=5263,
	aaDeathsWrath							=5264,
	aaSummonersBeckon						=5269,
	aaShiftingElements						=5276,
	aaArcaneOverkill						=5295,
	aaFuneralDirge							=5298,
	aaFierceEye								=5717,
	aaPreciseBlow							=5776,
	aaForceofDisruption						=5984,
	aaPunchMastery							=6020,
	aaHastenedDestructiveForce				=6023,
	aaCompanionsDurability					=6051,
	aaGeneralSturdiness						=6119,
	aaRapidDefiance							=6136,
	aaPactoftheWurine						=6218,
	aaProtectionofDirewood					=6232,
	aaEnhancedDamageShield					=6257,
	aaArcomancy								=6290,
	aaBlessingofResurrection				=6299,
	aaRakesDeadlyAim						=6322,
	aaRoguesFury							=6325,
	aaEnvenomedBlades						=6328,
	aaCompanionofNecessity					=6333,
	aaRakesPowerfulAim						=6334,
	aaHastenedCacophony						=6337,
	aaHastenedFuneralDirge					=6340,
	aaMastersHastenedCombination			=6343,
	aaHastenedSilentCasting					=6346,
	aaHastenedSilentCasting2				=6349,
	aaHastenedTrueshot						=6355,
	aaOutridersAccuracy						=6370,
	aaDestructiveCascade					=6375,
	aaCompanionsRelocation					=6379,
	aaFocusedParagonofSpirits				=6380,
	aaCompanionsAgility						=6383,
	aaMaestrosConcentration					=6386,
	aaBlessingofLife						=6395,
	aaPlanarDurability3						=6422,
	aaHolyRoot								=6436,
	aaHastenedRoarofThunder					=6442,
	aaQuickenedSuspendMinion				=6445,
	aaQuickenedSummonAxes					=6452,
	aaCallHither							=6455,
	aaFortifiedSurvival						=6458,
	aaFortifiedIntervention					=6461,
	aaPlanarDurability4						=6467,
	aaFuriousLeap							=6499,
	aaQuickenedHarvestofDruzzil				=6503,
	aaChatteringBones						=6508,
	aaWarlordsDeadlyAim						=6511,
	aaQuickenedCalloftheWild				=6514,
	aaGiftofExquisiteRadiantMana			=6517,
	aaHastenedOrigin						=6528,
	aaDirgeoftheSleepwalker					=6533,
	aaQuickTime								=6534,
	aaSteadyHands							=6535,
	aaSelosSonata							=6536,
	aaCompanionsBlessing					=6537,
	aaHastenedBestialAlignment				=6538,
	aaFortifyCompanion						=6539,
	aaBurstofPower							=6540,
	aaPactoftheWurine2						=6541,
	aaRecklessAbandon						=6542,
	aaGiftofResurrection					=6543,
	aaTouchoftheDivine3						=6544,
	aaHastenedCalloftheWild					=6545,
	aaHuntersAttackPower					=6546,
	aaHastenedExodus2						=6547,
	aaClingingRoot							=6548,
	aaVielofInvisibility					=6549,
	aaCriticalAffliction2					=6550,
	aaLessenedPresence						=6551,
	aaManaOverburn							=6552,
	aaHostoftheElements2					=6553,
	aaEnhancedDamageShield2					=6554,
	aaHastenedPurifyBody					=6555,
	aaWrathofLife							=6556,
	aaKnightsReturnStrike					=6557,
	aaHuntersReturnKick						=6558,
	aaHastenedLigamentSlice					=6559,
	aaKnavesReturnStrike					=6560,
	aaStormStrike							=6561,
	aaSilentPresence						=6562,
	aaTurgursSwarm							=6563,
	aaInfusedbyRage							=6564,
	aaGutPunch								=6565,
	aaWarlordsReturnKick					=6566,
	aaArcomancy2							=6567,
	aaCallofXuzl2							=6568,
	aaBETAONLYDestructiveForceTest			=6600,
	aaRecourseofLife						=6601,
	aaVehementRage							=6607,
	aaKneeStrike							=6610,
	aaHastenedFortitudeDiscipline			=6611,
	aaHastenedFuriousDiscipline				=6614,
	aaWarlordsBravery						=6617,
	aaDeathsRevenge							=6630,
	aaHarmshield							=6635,
	aaDestructiveFury3						=6636,
	aaVoiceofThule							=6639,
	aaExplosionofHatred						=6640,
	aaCascadingTheftofLife					=6641,
	aaHateStep								=6644,
	aaViciousBiteofChaos					=6645,
	aaEncroachingDarkness					=6646,
	aaSleightofHand4						=6663,
	aaEnduringVision						=6664,
	aaEnduringVision2						=6666,

	aaCunningDisguiseHuman					=6671,
	aaCunningDisguiseHalfElf				=6672,
	aaCunningDisguiseBarbarian				=6673,
	aaCunningDisguiseErudite				=6674,
	aaCunningDisguiseTroll					=6675,
	aaCunningDisguiseGoblin					=6676,
	aaQuickCannibalize						=6690,
	aaTigirsInsectSwarm						=6691,
	aaDampenResistance						=6692,
	aaHastenedDampenResistance				=6697,
	aaHastenedDampenResistance2				=6698,
	aaSpiritWalk							=6702,
	aaHastenedVirulentParalysis				=6703,
	aaLanguidBite							=6706,
	aaQuickenedBloodofNadox					=6709,
	aaHastenedSpiritCall					=6712,
	aaHarmoniousArrow						=6750,
	aaHastenedWeaponShield					=6751,
	aaOutridersAttack						=6754,
	aaGroupGuardianoftheForest				=6755,
	aaPackHunt								=6758,
	aaKeenBlade								=6761,
	aaOutridersEvasion						=6764,
	aaRangedFinesse							=6765,
	aaGroupCloakofLight						=6790,
	aaHealingLight							=6791,
	aaHalttheDead							=6794,
	aaDirectedForceofDisruption				=6795,
	aaRiseofBones							=6815,
	aaWhisperwind							=6818,
	aaHastenedBloodMagic					=6819,
	aaOverpowerUndead						=6822,
	aaHastenedSwarmofDecay					=6823,
	aaGiftoftheGrave						=6828,
	aaHastenedSongofStone					=6870,
	aaStompingLeap							=6930,
	aaJuggernautSurge						=6931,
	aaDistractionAttack						=6932,
	aaHastenedSavageSpirit					=6935,
	aaDyingBlow								=6938,
	aaHastenedDistractionAttack				=6941,
	aaNaturalInvisibility					=6970,
	aaAttackoftheWarders					=6971,
	aaHastenedFeralAttacks					=6974,
	aaHastenedFocusedParagon				=6977,
	aaHastenedParagon						=6980,
	aaGroupBestialAlignment					=6983,
	aaBiteoftheAsp							=6984,
	aaRavensClaw							=6985,
	aaGorillaSmash							=6986,
	aaAuroriaMastery						=6987,
	aaHastenedGetaway						=7005,
	aaForaging								=7062,
	aaPerfectedInvisibility					=7069,
	aaHastenedDivineAvatar					=7100,
	aaHastenedPurification2					=7103,
	aaBeastlordsFeralKick					=7106,
	aaGiftofAmazingExquisiteRadiantMana		=7621,
	aaHastenedWrathoftheWild				=7664,
	aaGroupShrink							=7669,
	aaEnchantDwerium						=7732,
	aaMassEnchantDwerium					=7734,
	aaEnchantPalladium						=7735,
	aaEnchantPalladiumTrio					=7736,
	aaMassEnchantPalladium					=7737,
	aaGreaterMassEnchantPalladium			=7738,
	aaEnchantTemporite						=7739,
	aaMassEnchantTemporite					=7740,

	aaLayonHandsRank16						=7866, //Duplicate ID with aaExtendedAstralProjection!

	aaHarmTouch								=7800,//First 10 AA cost 0 per rank
	aaHarmToch2								=7810,//Next 6+ AA cost 3 +1inc per rank
	aaLayonHands							=7850,//First 10 AA cost 0 per rank
	aaLayonHands2							=7860,//Next 6+ AA cost 3 +1inc per rank
	//aaExtendedAstralProjection				=7866,
	aaNeshikasBlink							=7869,
	aaZanFisWhistle							=7872,
	aaFivePointPalm							=7875,
	aaTheftofEssence						=7900,
	aaMalosinete							=7903,
	aaHastenedTurnUndead					=7940,
	aaCascadingDivineAura					=7943,
	aaGroupPurifySoul						=7944,
	aaQuickenedRenewal						=7945,
	aaSanctifiedBlessing					=7948,
	aaFocusedCelestialRegeneration			=7951,
	aaMasteryofNature						=7980,
	aaHastenedNaturesGuardian				=7983,
	aaSpiritoftheBlackWolf					=7986,
	aaHastenedLycanSoul						=7989,
	aaSelfStasis							=8030,
	aaHastenedVeilofMindshadow				=8031,
	aaPhantasmalOpponent					=8034,
	aaHastenedEdictofCommand				=8035,
	aaFogofMemories							=8038,
	aaBiteofTashani							=8039,
	aaExtendedIngenuity						=8040,
	aaFuryofDruzzil							=8060,
	aaFuryofEci								=8063,
	aaFuryofRo								=8066,
	aaFortifiedEntanglement					=8069,
	aaForceofWill							=8072,
	aaAtolsShackles							=8075,
	aaHastenedManaburn						=8076,
	aaHastenedCallofXuzl					=8082,
	aaCompanionsAlacrity					=8190,
	aaImprovedIntimidation					=8193,
	aaPerfectedLevitation					=8194,
	aaHastenedFortifyCompanion				=8195,
	aaEmpoweredIngenuity					=8198,
	aaCompanionsFury						=8201,
	aaQuickenedRadiantCure					=8204,
	aaQuickenedRadiantCure2					=8207,
	aaMentalStamina							=8210,
	aaHardyEndurance						=8215,
	aaGroupPerfectInvisibility				=8220,
	aaFocusofArcanum						=8221,
	aaGroupPerfectedInvisibilitytoUndead	=8222,
	aaSpellCastingReinforcementMastery2		=8223,
	aaCascadeofLife							=8224,
	aaSummonCompanion						=8227,
	aaMentalFortitude						=8228,
	aaGate									=8231,
	aaExtendedIngenuity2					=8232,
	aaArmorofWisdom1						=8235,
	aaArmorofWisdom2						=8240,
	aaArmorofWisdom3						=8245,
	aaArmorofWisdom4						=8250,
	aaArmorofWisdom5						=8255,


	aaSpellCastingReinforcementArtistry		=8262,
	aaEarthenBrawn							=8263,
	aaEarthenStability						=8268,
	aaEarthenAlacrity						=8273,
	aaEarthenArtistry						=8278,
	aaEarthenSagacity						=8283,
	aaEarthenBrilliance						=8288,
	aaEarthenAllure							=8293,
	aaResplendentGlory						=8300,
	aaRageofRallosZek						=8303,
	aaEnhancedAreaTaunt						=8312,
	aaFluidMarch							=8314,
	aaHastenedSelosKick						=8317,
	aaHastenedBellow						=8319,
	aaBelltoneMind							=8322,
	aaSubtleBlows							=8325,
	aaLitheBody								=8330,
	aaEnhancedThiefsEyes					=8331,
	aaExtendedLanguidBite					=8332,
	aaQuickenedMalosinete					=8335,
	aaDrapeofShadows						=8341,
	aaHostintheShell						=8342,
	aaHastenedManaDraw						=8347,
	aaHastenedMezmerization					=8350,
	aaDreamlikeMight						=8351,
	aaDreamlikeFortitude					=8361,
	aaDreamlikeSwiftness					=8371,
	aaDreamlikeCunning						=8381,
	aaDreamlikeSapience						=8391,
	aaArmorRend								=8400,
	aaFundamentofIntellect					=9100,
	aaSongwriting							=9101,
	aaFundamentofIntellect2					=9109,
	aaHybridResearch						=9111,
	aaFundamentofIntellect3					=9118,
	aaWrittenPrayer							=9121,
	aaFundamentofIntellect4					=9127,
	aaFundamentofWisdom						=9136,
	aaFundamentofWisdom2					=9145,
	aaFundamentofWisdom3					=9154,
	aaFundamentofPower						=9163,
	aaFundamentofPower2						=9172,
	aaFundamentofPower3						=9181,
	aaFundamentofPower4						=9190,
	aaFundamentofPower5						=9199,
	aaFundamentofCombat						=9208,
	aaFundamentofCombat2					=9217,
	aaFundamentofCombat3					=9226,
	aaFundamentofCombat4					=9235,
	aaFundamentFirstSpireofArcanum			=9300,
	aaFundamentSecondSpireofArcanum			=9303,
	aaFundamentThirdSpireofArcanum			=9306,
	aaFundamentFirstSpireoftheSensei		=9309,
	aaFundamentSecondSpireoftheSensei		=9312,
	aaFundamentThirdSpireoftheSensei		=9315,
	aaFundamentFirstSpireoftheElements		=9318,
	aaFundamentSecondSpireoftheElements		=9321,
	aaFundamentThirdSpireoftheElements		=9324,
	aaFundamentFirstSpireofEnchantment		=9327,
	aaFundamentSecondSpireofEnchantment		=9330,
	aaFundamentThirdSpireofEnchantment		=9333,
	aaFundamentFirstSpireofNecromancy		=9336,
	aaFundamentSecondSpireofNecromancy		=9339,
	aaFundamentThirdSpireofNecromancy		=9342,
	aaFundamentFirstSpireoftheWarlord		=9345,
	aaFundamentSecondSpireoftheWarlord		=9348,
	aaFundamentThirdSpireoftheWarlord		=9351,
	aaFundamentFirstSpireoftheRake			=9354,
	aaFundamentSecondSpireoftheRake			=9357,
	aaFundamentThirdSpireoftheRake			=9360,
	aaFundamentFirstSpireoftheMinstrels		=9363,
	aaFundamentSecondSpireoftheMinstrels	=9366,
	aaFundamentThirdSpireoftheMinstrels		=9369,
	aaFundamentFirstSpireoftheSavageLord	=9372,
	aaFundamentSecondSpireoftheSavageLord	=9375,
	aaFundamentThirdSpireoftheSavageLord	=9378,
	aaFundamentFirstSpireofHoliness			=9381,
	aaFundamentSecondSpireofHoliness		=9384,
	aaFundamentThirdSpireofHoliness			=9387,
	aaFundamentFirstSpireoftheReavers		=9390,
	aaFundamentSecondSpireoftheReavers		=9393,
	aaFundamentThirdSpireoftheReavers		=9396,
	aaFundamentFirstSpireofthePathfinders	=9399,
	aaFundamentSecondSpireofthePathfinders	=9402,
	aaFundamentThirdSpireofthePathfinders	=9405,
	aaFundamentFirstSpireofDivinity			=9408,
	aaFundamentSecondSpireofDivinity		=9411,
	aaFundamentThirdSpireofDivinity			=9414,
	aaFundamentFirstSpireofNature			=9417,
	aaFundamentSecondSpireofNature			=9420,
	aaFundamentThirdSpireofNature			=9423,
	aaFundamentFirstSpireofAncestors		=9426,
	aaFundamentSecondSpireofAncestors		=9429,
	aaFundamentThirdSpireofAncestors		=9432,
	aaFundamentFirstSpireofSavagery			=9435,
	aaFundamentSecondSpireofSavagery		=9438,
	aaFundamentThirdSpireofSavagery			=9441,
	aaHastenedDirgeoftheSleepwalker			=10329,
	aaVaingloriousShout						=10330,
	aaLyreLeap								=10331,
	aaDominationMastery						=10332,
	aaLyricalPrankster						=10333,
	aaSelosKick								=10336,
	aaATuneStuckInYourHead					=10339,
	aaStonefoot								=10340,
	aaHastenedStunningKick					=10343,
	aaInfusionofThunder						=10346,
	aaChainsofPurity						=10348,
	aaProjectionofFury						=10351,
	aaProjectionofDoom						=10352,
	aaProjectionofPiety						=10353,
	aaGiftofLife							=10354,
	aaBlessingofLight						=10355,
	aaHastenedDivineIntervention			=10358,
	aaImprovedAtone							=10364,
	aaAgelessEnmity							=10367,
	aaCoverTracks							=10368,
	aaSpellCastingSubtlety3					=10370,
	aaImprovedNaturalInvisibility			=10373,
	aaProtectionoftheWarder					=10374,
	aaNaturesSalve							=10377,
	aaFocusofAnimus							=10380,
	aaImbuedFerocity						=10387,
	aaNaturesReprieve						=10388,
	aaExtendedTrickery						=10389,
	aaAgelessEnmity2						=10392,
	aaShacklesofTunare						=10393,
	aaBeaconoftheRighteous					=10394,
	aaBobbingCorpse							=10395,
	aaGroupSpiritoftheWhiteWolf				=10396,
	aaGroupSpiritoftheBlackWolf				=10397,
	aaSelfPreservation						=10400,
	aaHastenedFrenzy						=10401,
	aaExtendedHavoc							=10404,
	aaHastenedDeflectionDiscipline			=10405,
	aaRogueTripleAttackSkillupTest			=10410,
	aaHastenedHostoftheElements				=10413,
	aaEnhancedWallofWind					=10421,
	aaHandofRo								=10424,
	aaFixationofRo							=10425,
	aaPeacefulSpiritoftheWood				=10426,
	aaPeacefulConvergenceofSpirits			=10427,
	aaQuickenedArmyoftheDead				=10434,
	aaHealingFrenzy							=10450,
	aaOverpoweringStrikes					=10453,
	aaQuickenedBlessingofRessurection		=10456,
	aaHastenedAtonement						=10459,
	aaImprovedSanctuary						=10462,
	aaBlessingofSanctuary					=10463,
	aaHastenedCelestialHammer				=10464,
	aaQuickenedTurnUndead					=10470,
	aaSpiritofEagle							=10500,
	aaFlightofEagles						=10501,
	aaEgress								=10502,
	aaSpiritsofNature						=10503,
	aaWallofWind							=10506,
	aaHastenedSpiritoftheWood				=10511,
	aaHastenedConvergenceofSpirits			=10514,
	aaHastenedProjectionofFury				=10519,
	aaHastenedGutPunch						=10522,
	aaHastenedFirstSpireoftheWarlord		=10527,
	aaHastenedSecondSpireoftheWarlord		=10532,
	aaHastenedThirdSpireoftheWarlord		=10537,
	aaWillingCovenant						=10542,
	aaWarlordsResurgence					=10545,
	aaWarlordsFury							=10546,
	aaSurgeoftheVanquisher					=10547,
	aaImprovedShieldSpecialist				=10548,
	aaBeamofSlumber							=10550,
	aaPhantasmicReflex						=10551,
	aaHastenedSelfStasis					=10558,
	aaForcefulBanishment					=10561,
	aaHastenedBlastofAnger					=10579,
	aaHastenedFuriousLeap					=10582,
	aaHastenedGrapplingStrike				=10588,
	aaForceofElements						=10600,
	aaAspectofZomm							=10601,
	aaExtendedSharedHealth					=10610,
	aaFuriousRefrain						=10627,
	aaAgileFeet								=10650,
	aaHastenedDefensivePoses				=10653,
	aaExtendedImpenetrableDiscipline		=10656,
	aaHastenedDestructiveForce2				=10657,
	aaMendingofBodyandSoul					=10666,
	aaLevant								=10700,
	aaReluctantBenevolence					=10701,
	aaValorousRage							=10711,
	aaHastenedGroupGuardianoftheForest		=10714,
	aaHastenedOutridersAttack				=10719,
	aaHastenedProtectionoftheSpiritWolf		=10722,
	aaHastenedImbuedFerocity				=10727,
	aaHastenedHarmoniousArrow				=10730,
	aaHastenedEntrap						=10733,
	aaPoisonArrows							=10736,
	aaBestowDivineAura2						=10752,
	aaBlessingofPurification				=10753,
	aaSensetheDead							=10754,
	aaBlessingofRo							=10789,
	aaExtendedWildGrowth					=10792,
	aaHastenedCalloftheWild2				=10797,
	aaHastenedAuspiceoftheHunter			=10800,
	aaClenchedJaw							=10803,
	aaScoutsMasteryofFire					=10806,
	aaScoutsMasteryofIce					=10809,
	aaScoutsMasteryofMagic					=10812,
	aaScoutsMasteryofSlashing				=10815,
	aaScoutsMasteryofPiercing				=10818,
	aaScoutsMasteryofBluntWeapons			=10821,
	aaMassiveStrike							=10850,
	aaStrikethrough2						=10853,
	aaHatesAttraction						=10900,
	aaFeignedMinion2						=10903,
	aaHastenedSummonRemains					=10909,
	aaVisageofDeath							=10912,
	aaCascadingTheftofLife2					=10915,
	aaExtendedSloth							=10950,
	aaHastenedAncestralAid					=10951,
	aaHastenedUnionofSpirits				=10954,
	aaGroupShrink2							=10957,
	aaInconspicuousTotem					=10958,
	aaExtendedPestilence					=10959,
	aaGroupSpiritWalk						=10960,
	aaHastenedTaunt							=11000,
	aaExtendedShieldReflect					=11003,
	aaExtendedCommandingVoice				=11004,
	aaHastenedLeap							=11007,
	aaRefundTest							=11017,
	aaHastenedDestruction					=11050,
	aaNetherstep							=11055,
	aaBeamofDisplacement					=11056,
	aaTranslocate							=11057,
	aaTeleport								=11058,
	aaPlayingPossum							=11073,
	aaCatlikeReflexes						=11074,
	aaHastenedBiteoftheAsp					=11077,
	aaHastenedGorillaSmash					=11078,
	aaHastenedRavensClaw					=11079,
	aaChameleonStrike						=11080,
	aaBearPatriarch							=11081,
	aaTwoHandsNoMercy						=11085,
	aaHastenedCryofBattle					=11088,
	aaTwinproc								=12416,
	aaTacticalMastery2						=12419,
	aaGroupPerfectedLevitation				=12422,
	aaDoubleRiposte2						=12429,
	aaHastenedForcefulRejuvenation			=12430,
	aaHastenedCompanionsBlessing			=12478,
	aaMysticalEcho							=12489,
	aaHastenedJoltingKicks					=12500,
	aaHastenedHatesAttraction				=12582,
	aaHastenedFrenziedStabbing				=12600,
	aaExtendedFrenziedStabbingDiscipline	=12603,
	aaSpeedoftheScoundrel					=12606,
	aaHastenedPinpoint						=12607,
	aaHastenedTwistedChanceDiscipline		=12615,
	aaVileEfficacy							=12634,
	aaImprovedDeathPeace					=12635,
	aaEyesWideOpen							=12636,
	aaCommunionoftheCheetah					=12638,
	aaExtendedConvergenceofSpirit			=12645,
	aaExtendedSpiritoftheWood				=12646,
	aaSpiritoftheBear						=12651,
	aaTwinheal								=12652,
	aaNaturesBlessing						=12655,
	aaNaturesFury							=12661,
	aaHastenedStormStrike					=12664,
	aaExtendedImpenetrableBarrier			=12678,
	aaExtendedHeelofKanji					=12688,
	aaExtendedScaledfist					=12691,
	aaFistsofSteel							=12706,
	aaExtendedDeftdance						=12709,
	aaHastenedDeftdance						=12710,
	aaHastenedLyreLeap						=12713,
	aaHastenedQuickTime						=12716,
	aaExtendedQuickTime						=12719,
	aaExtendedFierceEye						=12720,
	aaHastenedFierceEye						=12721,
	aaHastenedDanceofBlades					=12727,
	aaResoundingDirge						=12737,
	aaFreeze								=12752,
	aaShock									=12753,
	aaQuickenedArmyoftheDead2				=12763,
	aaLRKBolt								=12764,
	aaExoblast								=12765,
	aaMercurialTorment						=12766,
	aaPestilentParalysis					=12770,
	aaHastenedDivineCompanionAura			=12773,
	aaEmbalmersCarapace						=12778,
	aaHastenedEncroachingDarkness			=12779,
	aaExpandingDarkness						=12782,
	aaAegisofKildrukaun						=12785,
	aaBestialBloodrage						=12804,
	aaCompanionsSacrifice					=12807,
	aaExtendedFeralgia						=12816,
	aaHastenedProtectiveSpirit				=12819,
	aaHastenedEmpathicFury					=12822,
	aaWardersGemination						=12825,
	aaQuickenedParagonofSpirit				=12831,
	aaWardersGift							=12837,
	aaGelidRending							=12846,
	aaQuickenedNaturesSalve					=12849,
	aaImprovedWardofDestruction				=12852,
	aaAbscond								=12864,
	aaAtolsUnresistableShackles				=12865,
	aaDimensionalShield						=12866,
	aaImprovedSustainedDestruction			=12867,
	aaHastenedHarvestofDruzzil				=12881,
	aaSurvivaloftheFelicitous				=12884,
	aaConcussiveIntuition					=12885,
	aaEcisIcyBlessing						=12886,
	aaRosFieryBlessing						=12887,
	aaDruzzilsMysticalBlessing				=12888,
	aaKerafyrmsFavor						=12889,
	aaKerafyrmsFavor2						=12890,
	aaKerafyrmsPrismaticFamiliar			=12892,
	aaImprovedTwincast						=12893,
	aaHastenedPhantasmalOpponent			=12894,
	aaHastenedFirstSpireofEnchantment		=12902,
	aaHastenedSecondSpireofEnchantment		=12907,
	aaHastenedThirdSpireofEnchantment		=12912,
	aaProfoundVisage						=12920,
	aaBeguilersBanishment					=12923,
	aaExtendedPacification					=12926,
	aaCalculatedInsanity					=12931,
	aaCripplingAurora						=12937,
	aaMentalContortion						=12938,
	aaGlyphSpray							=12939,
	aaEtherealYield							=12940,
	aaDiminutiveCompanion					=12941,
	aaElementalSpellFury					=12960,
	aaSmallModulationShard					=12963,
	aaMediumModulationShard					=12964,
	aaLargeModulationShard					=12965,
	aaHastenedMalosinete					=12968,
	aaShieldoftheElements					=12971,
	aaExtendedMalosinete					=12977,
	aaExtendedPestilence2					=12988,
	aaArmorofAncestralSpirits				=12989,
	aaGroupPactoftheWolf					=12992,
	aaHastenedInconspicuousTotem			=13001,
	aaPurifiedSpirits						=13004,
	aaGroupSpiritWalk2						=13008,
	aaGroupSilentPresence					=13009,
	aaHastenedCannibalization				=13010,
	aaHastenedSpiritChanneling				=13013,
	aaVengefulSpirits						=13017,
	aaCripplingApparition					=13020,
	aaHastenedSelfPreservation				=13055,
	aaBindingAxe							=13065,
	aaAgonyofAbsolution						=13066,
	aaHastenedAbsolution					=13067,
	aaGiftofDreamlikeExquisiteRadiantMana	=13090,
	aaLingeringDeath						=13096,
	aaMarrsSalvation						=13100,
	aaBlessingoftheFaithful					=13101,
	aaUnbridledStrikeofFear					=13108,
	aaHastenedForcefulRejuvenation2			=13129,
	aaMovingMountains						=13130,
	aaQuickenedTerrors						=13132,
	aaBattleFrenzy							=13134,
	aaQuickenedDivineAvatar					=13137,
	aaQuickenedSilentCasting				=13143,
	aaQuickenedSilentCasting2				=13146,
	aaBalefireBurst							=13164,
	aaExplosionofSpite						=13165,
	aaHastenedExplosionofHatred				=13166,
	aaHowloftheWarlord						=13169,
	aaLeapofFaith							=13202,
	aaHastenedTuneInYourHead				=13204,
	aaBloodfury								=13224,
	aaScentofTerris							=13225,
	aaDrearyDeeds							=13252,
	aaEnchantFeymetal						=13260,
	aaMassEnchantFeymetal					=13261,
	aaPoke									=13268,
	aaReplicate								=13269,
	aaInsight								=13270,
	aaEnchantAlaranMetal					=13271,
	aaMassEnchantAlaranMetal				=13272,
	aaLifetap								=13274,
	aaGiftofAscendantExquisiteRadiantMana	=13294,
	aaDivineGuardian						=13385,
	aaDivinePeace							=13388,
	aaYaulp									=13389,
	aaHastenedPurifiedSpirits				=13416,
	aaSwarmofFireflies						=13419,
	aaHastenedProjectionofFury2				=13441,
	aaBladeGuardian							=13444,
	aaHastenedPossum						=13449,
	aaHastenedWardersGift					=13463,
	aaHastenedCompanionsSacrifice			=13474,
	aaCheetahsPounce						=13483,
	aaBloodlust								=13484,
	aaPrimalFury							=13485,
	aaShaurisSonoriousClouding				=13527,
	aaSonicDisplacement						=13528,
	aaLureoftheSirensSong					=13529,
	aaGlacialArrow							=13549,
	aaConvergenceofSpirits2					=13556,
	aaHastenedOutridersAccuracy				=13565,
	aaHastenedOutridersEvasion				=13568,
	aaGraspofSylvanSpirits					=13571,
	aaBloodthirstyBlade						=13616,
	aaEnlightenedFocusofArcanum				=13646,
	aaExtendedSilentCasting					=13667,
	aaFuryofKerafyrm						=13670,
	aaHallowedSteed							=13673,
	aaWickedSteed							=13674,
	aaEmbalmersCarapace2					=13678,
	aaMirroredPestilence					=13684,
	aaEmbraceTheDecay						=13687,
	aaQuickenedScentofTerris				=13689,
	aaFrenzyoftheDead						=13693,
	aaElementalUnion						=13695,
	aaCalculatedInsanity2					=13729,
	aaHastenedCalculatedInsanity			=13753,
	aaHastenedMentalContortion				=13758,
	aaHastenedCripplingAurora				=13764,
	aaGlyphofIndeterminableReward			=13788,
	aaRoguesFury2							=13792,
	aaPoisonousPerfection					=13801,
	aaDistantStrike							=13844,
	aaWarCryoftheBraxi						=13872,
	aaHastenedJuggernautSurge				=13873,
	aaHastenedResilience					=13878,
	aaHastenedBloodPact						=13881,
	aaHastenedFivePointPalm					=13889,
	aaPhalanxofOne							=13900,
	aaHastenedFlashofAnger					=13905,
	aaHastenedBazuRoar						=13908,
	aaHastenedScowl							=13911,
	aaHastenedMarkoftheMageHunter			=13917,
	aaVeiledStrength						=13933,
	aaVeiledFortitude						=13943,
	aaVeiledRapidity						=13953,
	aaVeiledCunning							=13963,
	aaVeiledAcumen							=13973,
	aaVeiledBrilliance						=13983,
	aaVeiledAllure							=13993,
	aaRestorationofLife						=14010,
	aaHastenedBeaconoftheRighteous			=14011,
	aaKnowledgeofAlaranCulture				=14017,
	aaKnowledgeofAlaranCultureAdvanced		=14018,
	aaBraceForImpact						=14019,
	aaMercilessBlade						=14026,
	aaCombatantsPact						=14029,
	aaWarlordsResolve						=14032,
	aaHastenedWarlordsBravery				=14037,
	aaHastenedWarlordsTenacity				=14040,
	aaHastenedLeechTouch					=14046,
	aaBonyGraspofDeath						=14051,
	aaThoughtLeech							=14052,
	aaHastenedLeechcurseDiscipline			=14056,
	aaHastenedUnholyAuraDiscipline			=14059,
	aaHastenedHarmshield					=14062,
	aaHastenedProjectionofDoom				=14065,
	aaHastenedProjectionofPiety				=14068,
	aaShieldofBrilliance					=14071,
	aaShieldofBrilliance2					=14072,
	aaHastenedSanctificationDiscipline		=14076,
	aaSpeedoftheSavior						=14080,
	aaDivineCall							=14081,
	aaHastenedLeapofFaith					=14085,
	aaHastenedMarrsSalvation				=14088,
	aaHastenedArmoroftheInquisitor			=14091,
	aaQuickenedStuns						=14100,
	aaExtendedOutridersAttack				=14115,
	aaEtheriumBlades						=14129,
	aaHastenedAssassinationDisciplines		=14135,
	aaCunningDisguiseShissar				=14139,
	aaScoutsMasteryofPiercing2				=14141,
	aaExtendedEnvenomedBlades				=14144,
	aaHastenedSpeedFocus					=14148,
	aaHeelofBrithrax						=14151,
	aaPressurePoints						=14157,
	aaHastenedZanFisWhistle					=14160,
	aaExtendedZanFisWhistle					=14163,
	aaHastenedThunder2						=14166,
	aaHastenedThousandBlades				=14169,
	aaHastenedTuneStuckInYourHead			=14176,
	aaExtendedDanceofBlades					=14179,
	aaExtendedThousandBlades				=14180,
	aaAllegrettoofBattle					=14181,
	aaVivaceofConflict						=14186,
	aaNoteworthyDisguiseDrake				=14192,
	aaBulwarkofBlades						=14193,
	aaDecapitation							=14200,
	aaHastenedBerserkingDisciplines			=14203,
	aaQuietMiracle							=14206,
	aaRepeltheWicked						=14207,
	aaBeaconofLife							=14208,
	aaBlessedChains							=14209,
	aaHastenedFocusedCelestialRegeneration	=14213,
	aaShrink								=14224,
	aaQuickenedSpiritCalling				=14225,
	aaQuickenedCalloftheWild2				=14228,
	aaSpiritualRebuke						=14231,
	aaPathosis								=14232,
	aaPreincarnation						=14233,
	aaSpiritualBlessing						=14234,
	aaHastenedNaturesFury					=14241,
	aaWrathoftheForestWalker				=14244,
	aaGiftofSylvanSpirits					=14249,
	aaExtendedVinelashCascade				=14254,
	aaExtendedSpiritoftheBear				=14259,
	aaVeiloftheUnderbrush					=14262,
	aaParalyticSpores						=14264,
	aaHiddenCommunionoftheCheetah			=14265,
	aaSteadfastResolve						=14275,
	aaExtendedGroupBestialAlignment			=14278,
	aaGroupPerfectedInvisibilitytoUndead2	=14281,
	aaPerfectedInvisibilitytoUndead			=14282,
	aaQuickenedStasis						=14283,
	aaExtendedDrearyDeeds					=14286,
	aaQuickenedFrenziedBurnout				=14289,
	aaQuickenedHostoftheElements			=14292,
	aaHastenedCompanionsRelocation			=14295,
	aaModulationSpecialist					=14298,
	aaStaffBlock							=14301,
	aaHastenedDrapeofShadows				=14304,
	aaVirulentTalon							=14307,
	aaHastenedPestilentParalysis			=14308,
	aaHastenedMercurialTorment				=14311,
	aaHastenedWhisperwind					=14314,
	aaQuickenedScentofTerris2				=14316,
	aaQuickenedDeathBloom					=14318,
	aaDeathsMalaise							=14321,
	aaDyingGrasp							=14322,
	aaAHoleInSpace							=14323,
	aaHastenedForceofWill					=14328,
	aaHastenedImprovedTwincast				=14331,
	aaHastenedNightmareStasis				=14341,
	aaScintillatingBeam						=14346,
	aaConvergence							=14358,
	aaGiftofDeathlyResolve					=14359,
	aaFuneralPyre							=14360,
	aaHastenedEldritchRune					=14364,
	aaHerosBarracks							=14367,
	aaHerosBarracks2						=14368,
	aaHerosBarracks3						=14369,
	aaHerosBarracks4						=14370,
	aaSummonTomeoftheHerosJourney			=14371,

	aaHighestID		//this should always be last, and should always
					//follow the highest AA ID
} aaID;

//Structure representing the database's swarm pet configs
struct SwarmPet_Struct {
	uint8 count;		//number to summon
	uint32 npc_id;		//id from npc_types to represent it.
	uint16 duration;		//how long they last, in seconds
};

enum {	//values of AA_Action.action
	aaActionActivate = 0,
	aaActionSetEXP = 1,
	aaActionDisableEXP = 2,
	aaActionBuy = 3
};

namespace AACategory {
	constexpr int None          = -1;
	constexpr int Passive       = 1;
	constexpr int Progression   = 2;
	constexpr int ShroudPassive = 3;
	constexpr int ShroudActive  = 4;
	constexpr int VeteranReward = 5;
	constexpr int Tradeskill    = 6;
	constexpr int Expendable    = 7;
	constexpr int RacialInnate  = 8;
	constexpr int EverQuest     = 9;
}

class Timer;
class Mob;
class SwarmPet {
public:
	SwarmPet();
	~SwarmPet();
	Mob * GetOwner();
	Timer *duration;
	uint32 target; //the target ID
	uint32 owner_id;
};

enum AATimers
{
	aaTimerRampage,
	aaTimerWarcry,
	aaTimerMax
};

#endif
