Skip to content

Commit

Permalink
Fixed Spell Script Target - Table is gone, now replaced by conditions…
Browse files Browse the repository at this point in the history
… instead
  • Loading branch information
jaddie committed Sep 25, 2017
1 parent 3631ff3 commit 853634d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Run/Content/Impl/TDB/Data/Spell.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<DataHolders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataHolder Name="Spell">
<DefaultTable>spell_script_target</DefaultTable>
<DefaultTable>conditions</DefaultTable>

<Flat Name="RequiredTargetType" Column="type" />
<Flat Name="RequiredTargetId" Column="targetEntry" />
<Flat Name="TargetOrientation" Column="target_orientation" Table="spell_target_position" />
<Flat Name="RequiredTargetType" Column="ConditionValue1" />
<Flat Name="RequiredTargetId" Column="ConditionValue2" />
<Flat Name="TargetOrientation" Column="Orientation" Table="spell_target_position" />

<Nested Name="TargetLocation">
<Flat Name="MapId" Column="target_map" Table="spell_target_position" />
<Flat Name="X" Column="target_position_x" Table="spell_target_position" />
<Flat Name="Y" Column="target_position_y" Table="spell_target_position" />
<Flat Name="Z" Column="target_position_z" Table="spell_target_position" />
<Flat Name="MapId" Column="MapId" Table="spell_target_position" />
<Flat Name="X" Column="PositionX" Table="spell_target_position" />
<Flat Name="Y" Column="PositionY" Table="spell_target_position" />
<Flat Name="Z" Column="PositionZ" Table="spell_target_position" />
</Nested>
</DataHolder>
</DataHolders>
4 changes: 2 additions & 2 deletions Run/Content/Impl/TDB/Tables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@
<Table Name="spell_scripts">
<PrimaryColumn Name="id" />
</Table>
<Table Name="spell_script_target" MainDataHolder="Spell">
<PrimaryColumn Name="entry" TypeName="UInt32" />
<Table Name="conditions" MainDataHolder="Spell">
<PrimaryColumn Name="SourceEntry" TypeName="UInt32" />
</Table>
<Table Name="spell_target_position" MainDataHolder="Spell">
<PrimaryColumn Name="id" TypeName="UInt32"/>
Expand Down

0 comments on commit 853634d

Please sign in to comment.