mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-26 13:57:56 +00:00
Added IsBuffSpell(spell_id). This will return true if the spell would end up having a duration, which will mean it would end up in one of the many buff windows on the client. This just makes sure the spell has a buffduration or buffdurationformula, which means the calculation will return a duration
Replaced all instances of CalcBuffDuration being used to determine if a spell was a buff with IsBuffSpell Removed Mob::HasBuffIcon since it does the same thing IsBuffSpell does in a more convoluted way and had a rather missing leading name Fixed issues that arose from the 10/03/2013 changes
This commit is contained in:
@@ -3033,15 +3033,6 @@ void Mob::SetDeltas(float dx, float dy, float dz, float dh) {
|
||||
delta_heading = static_cast<int>(dh);
|
||||
}
|
||||
|
||||
|
||||
bool Mob::HasBuffIcon(Mob *caster, Mob *target, uint16 spell_id)
|
||||
{
|
||||
if((caster->CalcBuffDuration(caster, target, spell_id)-1) > 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
void Mob::SetEntityVariable(const char *id, const char *m_var)
|
||||
{
|
||||
std::string n_m_var = m_var;
|
||||
|
||||
Reference in New Issue
Block a user