Initial check-in of bard bot in combat song code.

This commit is contained in:
badcaptain
2013-10-11 23:37:46 -04:00
parent f1b70b3340
commit 765f23febc
9 changed files with 184 additions and 46 deletions
+1
View File
@@ -422,6 +422,7 @@ RULE_BOOL ( Bots, BotGroupBuffing, false ) // Bots will cast single target buffs
RULE_BOOL ( Bots, BotSpellQuest, false ) // Anita Thrall's (Anita_Thrall.pl) Bot Spell Scriber quests.
RULE_INT ( Bots, BotAAExpansion, 8 ) // Bots get AAs through this expansion
RULE_BOOL ( Bots, BotGroupXP, false ) // Determines whether client gets xp for bots outside their group.
RULE_BOOL ( Bots, BotBardUseOutOfCombatSongs, true) // Determines whether bard bots use additional out of combat songs.
RULE_CATEGORY_END()
#endif
+15
View File
@@ -1102,6 +1102,21 @@ bool IsShortDurationBuff(uint16 spell_id)
return false;
}
bool IsSpellUsableThisZoneType(uint16 spell_id, uint8 zone_type)
{
if((spell_id > 0) && (spell_id < SPDAT_RECORDS))
{
//check if spell can be cast in any zone (-1 or 255), then if spell zonetype matches zone's zonetype
if(spells[spell_id].zonetype == -1
|| spells[spell_id].zonetype == 255
|| spells[spell_id].zonetype == zone_type) {
return true;
}
}
return false;
}
const char* GetSpellName(int16 spell_id)
{
return( spells[spell_id].name );
+1
View File
@@ -806,6 +806,7 @@ bool DetrimentalSpellAllowsRest(uint16 spell_id);
uint32 GetNimbusEffect(uint16 spell_id);
int32 GetFuriousBash(uint16 spell_id);
bool IsShortDurationBuff(uint16 spell_id);
bool IsSpellUsableThisZoneType(uint16 spell_id, uint8 zone_type);
const char *GetSpellName(int16 spell_id);
#endif