Added ability to manipulate disciplines for perl and lua. Also ability to remove spells from spell bar with spellID.

This commit is contained in:
Natedog2012
2015-12-14 01:18:19 -08:00
parent ee644f7b3e
commit baaf5801ff
6 changed files with 139 additions and 0 deletions
+10
View File
@@ -4910,6 +4910,16 @@ void Client::UnmemSpell(int slot, bool update_client)
}
}
void Client::UnmemSpellBySpellID(int32 spell_id)
{
for(int i = 0; i < MAX_PP_MEMSPELL; i++) {
if(m_pp.mem_spells[i] == spell_id) {
UnmemSpell(i, true);
break;
}
}
}
void Client::UnmemSpellAll(bool update_client)
{
int i;