mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 00:18:18 +00:00
[Quest API] Add BuffCount() Overloads to Perl/Lua. (#2679)
# Perl - Add `$mob->BuffCount(is_beneficial)`. - Add `$mob->BuffCount(is_beneficial, is_detrimental)`. # Lua - Add `mob:BuffCount(is_beneficial)`. - Add `mob:BuffCount(is_beneficial, is_detrimental)`. # Notes - Allows operators to count only beneficial or detrimental buffs a mob has instead of always counting all buffs.
This commit is contained in:
@@ -94,6 +94,8 @@ public:
|
||||
bool FindBuff(int spell_id);
|
||||
uint16 FindBuffBySlot(int slot);
|
||||
uint32 BuffCount();
|
||||
uint32 BuffCount(bool is_beneficial);
|
||||
uint32 BuffCount(bool is_beneficial, bool is_detrimental);
|
||||
bool FindType(int type);
|
||||
bool FindType(int type, bool offensive);
|
||||
bool FindType(int type, bool offensive, int threshold);
|
||||
|
||||
Reference in New Issue
Block a user