mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 18:46:37 +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:
+1
-1
@@ -443,7 +443,7 @@ public:
|
||||
int32 RuneAbsorb(int64 damage, uint16 type);
|
||||
bool FindBuff(uint16 spell_id);
|
||||
uint16 FindBuffBySlot(int slot);
|
||||
uint32 BuffCount();
|
||||
uint32 BuffCount(bool is_beneficial = true, bool is_detrimental = true);
|
||||
bool FindType(uint16 type, bool bOffensive = false, uint16 threshold = 100);
|
||||
int16 GetBuffSlotFromType(uint16 type);
|
||||
uint16 GetSpellIDFromSlot(uint8 slot);
|
||||
|
||||
Reference in New Issue
Block a user