mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
- Added Hazduhr the Abbot.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -7971,6 +7971,7 @@ forge-gui/res/cardsfolder/h/havoc_festival.txt -text
|
||||
forge-gui/res/cardsfolder/h/havoc_sower.txt -text
|
||||
forge-gui/res/cardsfolder/h/hawkeater_moth.txt svneol=native#text/plain
|
||||
forge-gui/res/cardsfolder/h/hazardous_conditions.txt -text
|
||||
forge-gui/res/cardsfolder/h/hazduhr_the_abbot.txt -text
|
||||
forge-gui/res/cardsfolder/h/haze_frog.txt -text
|
||||
forge-gui/res/cardsfolder/h/haze_of_pollen.txt -text
|
||||
forge-gui/res/cardsfolder/h/haze_of_rage.txt svneol=native#text/plain
|
||||
|
||||
@@ -111,6 +111,7 @@ public class EffectEffect extends SpellAbilityEffect {
|
||||
}
|
||||
|
||||
final Card eff = createEffect(hostCard, controller, name, image);
|
||||
eff.setEffectSource(hostCard);
|
||||
|
||||
// Grant SVars first in order to give references to granted abilities
|
||||
if (effectSVars != null) {
|
||||
|
||||
@@ -1863,7 +1863,12 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
sb.replace(start, start + 4, "\r\n");
|
||||
}
|
||||
|
||||
return sb.toString().replaceAll("CARDNAME", state.getName()).trim();
|
||||
String desc = sb.toString().replaceAll("CARDNAME", state.getName());
|
||||
if (getEffectSource() != null) {
|
||||
desc = desc.replace("EFFECTSOURCE", getEffectSource().getName());
|
||||
}
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
||||
private StringBuilder abilityTextInstantSorcery(CardState state) {
|
||||
|
||||
18
forge-gui/res/cardsfolder/h/hazduhr_the_abbot.txt
Normal file
18
forge-gui/res/cardsfolder/h/hazduhr_the_abbot.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
Name:Hazduhr the Abbot
|
||||
ManaCost:3 W W
|
||||
Types:Legendary Creature Human Cleric
|
||||
PT:2/5
|
||||
A:AB$ ChooseCard | Cost$ T X | ValidTgts$ Creature.White+YouCtrl | TgtPrompt$ Select target white creature you control | Mandatory$ True | Defined$ You | RememberChosen$ True | SubAbility$ DBSetVarBefore | SpellDescription$ The next X damage that would be dealt this turn to target white creature you control is dealt to CARDNAME instead. | StackDescription$ SpellDescription
|
||||
SVar:DBSetVarBefore:DB$ StoreSVar | SVar$ Y | Type$ CountSVar | Expression$ X | SubAbility$ DBEffect
|
||||
SVar:DBEffect:DB$ Effect | ReplacementEffects$ HazduhrDamage | Triggers$ OutOfSight | SVars$ HazduhrDamage,HazduhrDmg,ExileEffect,OutOfSight,Y | References$ HazduhrDamage,OutOfSight,HazduhrDmg,ExileEffect,Y | RememberObjects$ Targeted | ImprintCards$ Self | SubAbility$ DBCleanup
|
||||
SVar:HazduhrDamage:Event$ DamageDone | ValidTarget$ Card.IsRemembered | ReplaceWith$ HazduhrDmg | DamageTarget$ Imprinted | References$ Y | Description$ The next X damage that would be dealt this turn to target white creature you control is dealt to EFFECTSOURCE instead.
|
||||
SVar:HazduhrDmg:DB$ ReplaceSplitDamage | DamageTarget$ Imprinted | VarName$ Y | References$ Y
|
||||
SVar:OutOfSight:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.ChosenCard,Card.IsRemembered | Execute$ ExileEffect | Static$ True
|
||||
SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True
|
||||
SVar:X:Count$xPaid
|
||||
#X Will get overwritten by Announce
|
||||
SVar:Y:Number$0
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/hazduhr_the_abbot.jpg
|
||||
Oracle:{X}, {T}: The next X damage that would be dealt this turn to target white creature you control is dealt to Hazduhr the Abbot instead.
|
||||
Reference in New Issue
Block a user