*Add a missing change from 6097_world_loot_template.sql, thanks amsjunior123
*Some minor cleanup. --HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
ALTER TABLE `spell_loot_template` ADD COLUMN `lootmode` SMALLINT UNSIGNED NOT NULL DEFAULT 1 AFTER `ChanceOrQuestChance`;
|
||||||
@@ -6368,15 +6368,12 @@ void Spell::EffectLeapForward(uint32 i)
|
|||||||
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
|
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
|
||||||
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
|
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
|
||||||
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
|
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
|
||||||
}else
|
} else break;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (j == 9)
|
if (j == 9)
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
unitTarget->NearTeleportTo(destx, desty, destz + 0.07531, orientation, unitTarget==m_caster);
|
|
||||||
|
|
||||||
|
unitTarget->NearTeleportTo(destx, desty, destz + 0.07531, orientation, unitTarget==m_caster);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Spell::EffectReputation(uint32 i)
|
void Spell::EffectReputation(uint32 i)
|
||||||
|
|||||||
Reference in New Issue
Block a user