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:
Shauren
2011-03-04 21:13:09 +01:00
parent 7ecaf1d816
commit c2a2d7201b
2 changed files with 5 additions and 3 deletions

View File

@@ -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;

View File

@@ -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