mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Initial check-in of bard bot in combat song code.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user