mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Spells] Update SPA 339 SE_TriggerOnCast (#1478)
* Recoded SE_TriggerOnCast Focus effect Recoded SE_TriggerOnCast focus effect to be consistent with how all other focuses are checked. No longer an arbitrary limit as to number of a focus effects of this type you can have. * new command: resetdisc_timer usage: #resetdisc_timer [all | timer_id] * syntax fixes syntax improvements * minor fix changed numhits check * Update spell_effects.cpp * added better support for spell procs that don't require target. * syntax * Formatting and syntax tweaks Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
@@ -1282,3 +1282,14 @@ const char* GetSpellName(uint16 spell_id)
|
||||
return spells[spell_id].name;
|
||||
}
|
||||
|
||||
bool SpellRequiresTarget(int spell_id)
|
||||
{
|
||||
if (spells[spell_id].targettype == ST_AEClientV1 ||
|
||||
spells[spell_id].targettype == ST_Self ||
|
||||
spells[spell_id].targettype == ST_AECaster ||
|
||||
spells[spell_id].targettype == ST_Ring ||
|
||||
spells[spell_id].targettype == ST_Beam) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user