mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
DB/Skills: Changed required skill value to 0 for debug spell, spells with no skillline cant have skill value requirement
Fixed compile
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Debug spell, set reqSkillValue because it does not belong to any skilline
|
||||
UPDATE `skill_discovery_template` SET `reqSkillValue`=0 WHERE `reqSpell`=61756;
|
||||
@@ -238,8 +238,8 @@ class spell_gen_remove_flight_auras : public SpellScriptLoader
|
||||
|
||||
class spell_gen_remove_flight_auras_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_remove_flight_auras_SpellScript)
|
||||
void HandleScript(SpellEffIndex /*effIndex*/);
|
||||
PrepareSpellScript(spell_gen_remove_flight_auras_SpellScript);
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit* target = GetHitUnit();
|
||||
if (!target)
|
||||
@@ -289,7 +289,7 @@ class spell_gen_leeching_swarm : public SpellScriptLoader
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
{
|
||||
int32 lifeLeeched = pTarget->CountPctFromCurHealth(aurEff->GetAmount());
|
||||
int32 lifeLeeched = GetTarget()->CountPctFromCurHealth(aurEff->GetAmount());
|
||||
if (lifeLeeched < 250)
|
||||
lifeLeeched = 250;
|
||||
// Damage
|
||||
|
||||
Reference in New Issue
Block a user