aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Examples
diff options
context:
space:
mode:
authorQAston <none@none>2010-07-25 16:23:57 +0200
committerQAston <none@none>2010-07-25 16:23:57 +0200
commitfce1f5b014c1e2e3b0b85062898f56837111f66a (patch)
treecaf3bf48f82d5fc4f19c418d1cb0b57d07439b32 /src/server/scripts/Examples
parent997b9e6b226ab0eca2636b040a2d05a2f1804ef0 (diff)
*Extend API of SpellScript by Dest and Damage/Heal setters and getters.
*Make some SpellScript function names shorter. --HG-- branch : trunk
Diffstat (limited to 'src/server/scripts/Examples')
-rw-r--r--src/server/scripts/Examples/example_spell.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Examples/example_spell.cpp b/src/server/scripts/Examples/example_spell.cpp
index 90655127aa9..1622c087468 100644
--- a/src/server/scripts/Examples/example_spell.cpp
+++ b/src/server/scripts/Examples/example_spell.cpp
@@ -36,7 +36,7 @@ class spell_ex_49375SpellScript : public SpellScript
sLog.outError("WE ARE HANDLING DUMMY!");
sLog.outError(localVariable.c_str());
// make caster cast a spell on a unit target of effect
- if (Unit * target = GetEffectUnitTarget())
+ if (Unit * target = GetHitUnit())
GetCaster()->CastSpell(target, 70522, true);
};
void Register()
@@ -70,7 +70,7 @@ class spell_ex_49375SpellScript : public SpellScript
// script will be immediately removed from the spell
// for example - we don't want this script to be executed on a creature
// if (GetCaster()->GetTypeID() != TYPEID_PLAYER)
- // return false
+ // return false;
}
// function called just before script delete
// we free allocated memory
@@ -95,7 +95,7 @@ class spell_ex_SpellScript : public SpellScript
//EffectHandlers += EffectHandlerFn(spell_ex_SpellScript::Function, EFFECT_ANY, SPELL_EFFECT_ANY);
}
- //bool Load(){return true}
+ //bool Load(){return true;}
//void Unload(){}
//bool Validate(SpellEntry const * spellEntry){return true;}
};