diff options
| author | Drahy <none@none> | 2009-02-04 22:08:23 +0100 |
|---|---|---|
| committer | Drahy <none@none> | 2009-02-04 22:08:23 +0100 |
| commit | 674477ddf8678d81d116df88b33160fa6be303cb (patch) | |
| tree | 8dd3bac5ab94ee39d7b72588ce8fef231c70ddb0 /src/bindings/scripts/include | |
| parent | 5d4d9530556eb66940775f12c3cc5f3c115447ca (diff) | |
| parent | c745eba4a1d122b4184b27a982674c86ff193c23 (diff) | |
* Huge merge with original branch
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts/include')
| -rw-r--r-- | src/bindings/scripts/include/sc_creature.cpp | 16 | ||||
| -rw-r--r-- | src/bindings/scripts/include/sc_instance.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp index 75a4843c5bb..346e381e4d7 100644 --- a/src/bindings/scripts/include/sc_creature.cpp +++ b/src/bindings/scripts/include/sc_creature.cpp @@ -136,7 +136,7 @@ void ScriptedAI::EnterEvadeMode() { if(owner->isAlive()) m_creature->GetMotionMaster()->MoveFollow(owner,PET_FOLLOW_DIST,PET_FOLLOW_ANGLE); - } + } else m_creature->GetMotionMaster()->MoveTargetedHome(); } @@ -434,7 +434,7 @@ void ScriptedAI::SelectUnitList(std::list<Unit*> &targetList, uint32 num, Select || playerOnly && target->GetTypeId() != TYPEID_PLAYER || dist && !m_creature->IsWithinCombatRange(target, dist)) { - continue; + continue; } targetList.push_back(target); --num; @@ -634,15 +634,15 @@ void FillSpellSummary() SpellSummary[i].Targets |= 1 << (SELECT_TARGET_ANY_FRIEND-1); //Make sure that this spell includes a damage effect - if ( TempSpell->Effect[j] == SPELL_EFFECT_SCHOOL_DAMAGE || - TempSpell->Effect[j] == SPELL_EFFECT_INSTAKILL || - TempSpell->Effect[j] == SPELL_EFFECT_ENVIRONMENTAL_DAMAGE || + if ( TempSpell->Effect[j] == SPELL_EFFECT_SCHOOL_DAMAGE || + TempSpell->Effect[j] == SPELL_EFFECT_INSTAKILL || + TempSpell->Effect[j] == SPELL_EFFECT_ENVIRONMENTAL_DAMAGE || TempSpell->Effect[j] == SPELL_EFFECT_HEALTH_LEECH ) SpellSummary[i].Effects |= 1 << (SELECT_EFFECT_DAMAGE-1); //Make sure that this spell includes a healing effect (or an apply aura with a periodic heal) - if ( TempSpell->Effect[j] == SPELL_EFFECT_HEAL || - TempSpell->Effect[j] == SPELL_EFFECT_HEAL_MAX_HEALTH || + if ( TempSpell->Effect[j] == SPELL_EFFECT_HEAL || + TempSpell->Effect[j] == SPELL_EFFECT_HEAL_MAX_HEALTH || TempSpell->Effect[j] == SPELL_EFFECT_HEAL_MECHANICAL || (TempSpell->Effect[j] == SPELL_EFFECT_APPLY_AURA && TempSpell->EffectApplyAuraName[j]== 8 )) SpellSummary[i].Effects |= 1 << (SELECT_EFFECT_HEALING-1); @@ -746,7 +746,7 @@ void ScriptedAI::DoTeleportAll(float x, float y, float z, float o) } Unit* FindCreature(uint32 entry, float range, Unit* Finder) -{ +{ if(!Finder) return NULL; Creature* target = NULL; diff --git a/src/bindings/scripts/include/sc_instance.h b/src/bindings/scripts/include/sc_instance.h index 8ecd982f5cb..c02b05fa709 100644 --- a/src/bindings/scripts/include/sc_instance.h +++ b/src/bindings/scripts/include/sc_instance.h @@ -38,7 +38,7 @@ class TRINITY_DLL_DECL ScriptedInstance : public InstanceData virtual void Update(uint32) {} // Save and Load instance data to the database - const char* Save() { return NULL; } + const char* Save() { return NULL; } void Load(const char* in) { } }; |
